Changeset 27442 for trunk/dports/cross


Ignore:
Timestamp:
Aug 4, 2007, 4:49:55 AM (12 years ago)
Author:
landonf@…
Message:

Add prefixed and non-prefix compiler/assembler/linker symlinks (for use with cross compiling).
Set up CFLAGS_COMPILEROPT to correctly handle compiler optimization flags (substituting -O0 for all optimization levels, currently)

Location:
trunk/dports/cross/arm-iphone-cc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/cross/arm-iphone-cc/Portfile

    r27440 r27442  
    44name                    arm-iphone-cc
    55version                 r93
    6 revision                1
     6revision                3
    77categories              iphone
    88maintainers             landonf@macports.org openmaintainer@macports.org
     
    3939
    4040post-destroot {
     41        # Make the binaries externally visible.
    4142        system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-cc ./arm-apple-darwin-cc"
    4243        system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-cc ./arm-iphone-cc"
     44
     45        system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-ld ./arm-apple-darwin-ld"
     46        system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-ld ./arm-iphone-ld"
     47
     48        system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-as ./arm-apple-darwin-as"
     49        system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-as ./arm-iphone-as"
     50
     51        # Set up non-prefixed binaries in the iphone bin directory
     52        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-cc cc"
     53        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-ld ld"
     54        system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-as as"
    4355}
  • trunk/dports/cross/arm-iphone-cc/files/patch-driver_arm-cc-specs.in

    r27436 r27442  
    1 --- driver/arm-cc-specs.in.orig 2007-08-03 18:36:22.000000000 -0700
    2 +++ driver/arm-cc-specs.in      2007-08-03 18:36:41.000000000 -0700
    3 @@ -1,13 +1,13 @@
     1--- driver/arm-cc-specs.in.orig 2007-08-03 21:42:53.000000000 -0700
     2+++ driver/arm-cc-specs.in      2007-08-03 21:43:13.000000000 -0700
     3@@ -1,13 +1,14 @@
    44 # Customize to match your system. Then, place this file in ~/.arm-cc-specs
    55 # (where ~ represents your home dir).
    66-PREPROCESS=@prefix@/bin/llvm-gcc
     7+CFLAGS_COMPILEROPT=-O0
    78+PREPROCESS=@MACPORTS_PREFIX@/bin/llvm-gcc
    89 CPPFLAGS=-E -U__i386__ -U__ppc__ -D__arm__ -isystem @prefix@/include
     
    1819 LLCFLAGS_DYLIB=-mtriple=arm-apple-darwin -f -mcpu=generic -relocation-model=pic
    1920 OPT=@prefix@/bin/opt
    20 @@ -15,7 +15,7 @@
     21@@ -15,7 +16,7 @@
    2122 AS=@prefix@/bin/arm-apple-darwin-as
    2223 ASFLAGS=-arch arm
Note: See TracChangeset for help on using the changeset viewer.