[27442] trunk/dports/cross/arm-iphone-cc

source_changes at macosforge.org source_changes at macosforge.org
Fri Aug 3 21:49:55 PDT 2007


Revision: 27442
          http://trac.macosforge.org/projects/macports/changeset/27442
Author:   landonf at macports.org
Date:     2007-08-03 21:49:55 -0700 (Fri, 03 Aug 2007)

Log 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)

Modified Paths:
--------------
    trunk/dports/cross/arm-iphone-cc/Portfile
    trunk/dports/cross/arm-iphone-cc/files/patch-driver_arm-cc-specs.in

Modified: trunk/dports/cross/arm-iphone-cc/Portfile
===================================================================
--- trunk/dports/cross/arm-iphone-cc/Portfile	2007-08-04 03:44:06 UTC (rev 27441)
+++ trunk/dports/cross/arm-iphone-cc/Portfile	2007-08-04 04:49:55 UTC (rev 27442)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 name			arm-iphone-cc
 version			r93
-revision		1
+revision		3
 categories		iphone
 maintainers		landonf at macports.org openmaintainer at macports.org
 description		iPhone cross-compiler (driver) for arm-iphone
@@ -38,6 +38,18 @@
 }
 
 post-destroot {
+	# Make the binaries externally visible.
 	system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-cc ./arm-apple-darwin-cc"
 	system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-cc ./arm-iphone-cc"
+
+	system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-ld ./arm-apple-darwin-ld"
+	system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-ld ./arm-iphone-ld"
+
+	system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-as ./arm-apple-darwin-as"
+	system "cd ${destroot}/${prefix}/bin && ln -s ../arm-iphone/bin/arm-apple-darwin-as ./arm-iphone-as"
+
+	# Set up non-prefixed binaries in the iphone bin directory
+	system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-cc cc"
+	system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-ld ld"
+	system "cd ${destroot}/${iphone_prefix}/bin && ln -s arm-apple-darwin-as as"
 }

Modified: trunk/dports/cross/arm-iphone-cc/files/patch-driver_arm-cc-specs.in
===================================================================
--- trunk/dports/cross/arm-iphone-cc/files/patch-driver_arm-cc-specs.in	2007-08-04 03:44:06 UTC (rev 27441)
+++ trunk/dports/cross/arm-iphone-cc/files/patch-driver_arm-cc-specs.in	2007-08-04 04:49:55 UTC (rev 27442)
@@ -1,9 +1,10 @@
---- driver/arm-cc-specs.in.orig	2007-08-03 18:36:22.000000000 -0700
-+++ driver/arm-cc-specs.in	2007-08-03 18:36:41.000000000 -0700
-@@ -1,13 +1,13 @@
+--- driver/arm-cc-specs.in.orig	2007-08-03 21:42:53.000000000 -0700
++++ driver/arm-cc-specs.in	2007-08-03 21:43:13.000000000 -0700
+@@ -1,13 +1,14 @@
  # Customize to match your system. Then, place this file in ~/.arm-cc-specs
  # (where ~ represents your home dir).
 -PREPROCESS=@prefix@/bin/llvm-gcc
++CFLAGS_COMPILEROPT=-O0
 +PREPROCESS=@MACPORTS_PREFIX@/bin/llvm-gcc
  CPPFLAGS=-E -U__i386__ -U__ppc__ -D__arm__ -isystem @prefix@/include
 -LLVM_GCC=@prefix@/bin/llvm-gcc
@@ -17,7 +18,7 @@
  LLCFLAGS=-mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic -mcpu=generic -f
  LLCFLAGS_DYLIB=-mtriple=arm-apple-darwin -f -mcpu=generic -relocation-model=pic
  OPT=@prefix@/bin/opt
-@@ -15,7 +15,7 @@
+@@ -15,7 +16,7 @@
  AS=@prefix@/bin/arm-apple-darwin-as
  ASFLAGS=-arch arm
  LD=@prefix@/bin/arm-apple-darwin-ld

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070803/b08c86e6/attachment.html


More information about the macports-changes mailing list