[93482] trunk/dports/lang/apple-gcc42

jeremyhu at macports.org jeremyhu at macports.org
Wed May 23 14:57:46 PDT 2012


Revision: 93482
          https://trac.macports.org/changeset/93482
Author:   jeremyhu at macports.org
Date:     2012-05-23 14:57:46 -0700 (Wed, 23 May 2012)
Log Message:
-----------
apple-gcc42: Build fix for Leopard

Modified Paths:
--------------
    trunk/dports/lang/apple-gcc42/Portfile
    trunk/dports/lang/apple-gcc42/files/build_gcc

Modified: trunk/dports/lang/apple-gcc42/Portfile
===================================================================
--- trunk/dports/lang/apple-gcc42/Portfile	2012-05-23 21:44:45 UTC (rev 93481)
+++ trunk/dports/lang/apple-gcc42/Portfile	2012-05-23 21:57:46 UTC (rev 93482)
@@ -155,6 +155,9 @@
     OBJDUMP_FOR_TARGET=${prefix}/bin/objdump \
     RANLIB_FOR_TARGET=${prefix}/bin/ranlib \
     STRIP_FOR_TARGET=${prefix}/bin/strip \
+    DSYMUTIL_FOR_HOST=${prefix}/bin/dsymutil \
+    RANLIB_FOR_HOST=${prefix}/bin/ranlib \
+    STRIP_FOR_HOST=${prefix}/bin/strip \
     OTOOL=${prefix}/bin/otool \
     OTOOL64=${prefix}/bin/otool
 

Modified: trunk/dports/lang/apple-gcc42/files/build_gcc
===================================================================
--- trunk/dports/lang/apple-gcc42/files/build_gcc	2012-05-23 21:44:45 UTC (rev 93481)
+++ trunk/dports/lang/apple-gcc42/files/build_gcc	2012-05-23 21:57:46 UTC (rev 93482)
@@ -153,6 +153,10 @@
 fi
 # APPLE LOCAL end ARM
 
+RANLIB=${RANLIB_FOR_HOST-ranlib}
+STRIP=${STRIP_FOR_HOST-strip}
+DSYMUTIL=${DSYMUTIL_FOR_HOST-dsymutil}
+
 ########################################
 # Run the build.
 
@@ -532,7 +536,7 @@
       .$DEST_ROOT/lib/apple-gcc42/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/libstdc++.dylib \
       || exit 1
   fi
-  strip -x -c .$DEST_ROOT/lib/apple-gcc42/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/libstdc++.dylib || exit 1
+  ${STRIP} -x -c .$DEST_ROOT/lib/apple-gcc42/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/libstdc++.dylib || exit 1
 done
 fi
 
@@ -679,7 +683,7 @@
 
 # Generate .dSYM files
 find $DEST_DIR -perm -0111 \! -name fixinc.sh \
-    \! -name mkheaders -type f -print | xargs -n 1 dsymutil
+    \! -name mkheaders -type f -print | xargs -n 1 ${DSYMUTIL}
 
 # Save .dSYM files and .a archives
 cd $DEST_DIR || exit 1
@@ -695,12 +699,12 @@
 
 find $DEST_DIR -perm -0111 \! -name fixinc.sh \
     \! -name mkheaders \! -name libstdc++.dylib -type f -print \
-  | xargs strip || exit 1
+  | xargs ${STRIP} || exit 1
 
 # Ignore errors from this next one due to possible issues on Tiger
-find $DEST_DIR -name \*.a -print | xargs strip -SX
+find $DEST_DIR -name \*.a -print | xargs ${STRIP} -SX
 
-find $DEST_DIR -name \*.a -print | xargs ranlib || exit 1
+find $DEST_DIR -name \*.a -print | xargs ${RANLIB} || exit 1
 find $DEST_DIR -name \*.dSYM -print | xargs rm -r || exit 1
 chgrp -h -R wheel $DEST_DIR
 chgrp -R wheel $DEST_DIR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120523/e26c083a/attachment.html>


More information about the macports-changes mailing list