Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/net
In directory vz-cvs-3.sog:/tmp/cvs-serv30582

Modified Files:
        tenfourfox5.info 
Log Message:
sync with experimental: NOW it builds on 10.5


Index: tenfourfox5.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/net/tenfourfox5.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- tenfourfox5.info    24 Jun 2011 05:49:42 -0000      1.2
+++ tenfourfox5.info    30 Jun 2011 17:31:57 -0000      1.3
@@ -78,6 +78,25 @@
   pushd opt-bin
     ln -s /usr/bin/ld ld32
     ln -s ../../ldx3 .
+    # darwin9 only: python with hacked environment
+    # b/c python requires run-time M_D_T to be consistent with build-time
+    # the rest of the build should use M_D_T=10.4
+    this_dist=`sw_vers -productVersion | cut -d. -f1-2`
+    if test $this_dist = 10.5
+    then
+      realpy=`which python`
+      echo "#!/bin/sh -e" > python
+      echo "export MACOSX_DEPLOYMENT_TARGET=$this_dist" >> python
+      echo "exec $realpy \"\$@\"" >> python
+      chmod +x python
+      echo "PYTHON=%b/opt-bin/python" >> ../.mozconfig
+      # and then force python-wrapped gcc calls back to M_D_T=10.4
+      echo "#!/bin/sh -e" > MDT10.4
+      echo "export MACOSX_DEPLOYMENT_TARGET=10.4" >> MDT10.4
+      echo "exec \"\$@\"" >> MDT10.4
+      chmod +x MDT10.4
+      sed -i.orig -e '/^GCC_PREFIX=/s|flag-sort|MDT10.4 &|' ../.mozconfig
+    fi
   popd
   sed -e '/^#/!s|/usr/bin|%b/opt-bin|' SHIM.ld > opt-bin/ld
   chmod +x opt-bin/ld
@@ -222,6 +241,14 @@
 parallel builds to share the same jobserver as the master/parent
 make, so recursive instances of make benefit from -jN MAKEFLAGS.  
 
+Compiling on darwin9 (10.5) was a big pain (MACOSX_DEPLOYMENT_TARGET):
+M_D_T needed to be set to 10.4 to use the 10.4 SDK.
+Python scripts (wrappers) however need M_D_T equal to that with which
+python was built, which happens to be 10.5.
+M_D_T was overriden in wrapped calls to python, but then gcc 
+needed the outermost M_D_T, so CC/CXX were wrapped in yet
+another layer of M_D_T.
+
 Using system-provided libraries:
 --------------------------------
 . system-png cannot be used because it lacks APNG (upstream won't include it)


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to