[52343] trunk/base/src/port1.0/portconfigure.tcl

jmr at macports.org jmr at macports.org
Sun Jun 14 07:27:00 PDT 2009


Revision: 52343
          http://trac.macports.org/changeset/52343
Author:   jmr at macports.org
Date:     2009-06-14 07:26:46 -0700 (Sun, 14 Jun 2009)
Log Message:
-----------
/Developer -> $developer_dir

Modified Paths:
--------------
    trunk/base/src/port1.0/portconfigure.tcl

Modified: trunk/base/src/port1.0/portconfigure.tcl
===================================================================
--- trunk/base/src/port1.0/portconfigure.tcl	2009-06-14 13:53:16 UTC (rev 52342)
+++ trunk/base/src/port1.0/portconfigure.tcl	2009-06-14 14:26:46 UTC (rev 52343)
@@ -229,33 +229,33 @@
 
 # internal function to determine the CPPFLAGS for the compiler
 proc portconfigure::configure_get_universal_cppflags {args} {
-    global os.arch os.major
+    global os.arch os.major developer_dir
     set flags ""
     # include sysroot in CPPFLAGS too (twice), for the benefit of autoconf
     if {${os.arch} == "powerpc" && ${os.major} == "8"} {
-        set flags "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
+        set flags "-isysroot ${developer_dir}/SDKs/MacOSX10.4u.sdk"
     }
     return $flags
 }
 
 # internal function to determine the CFLAGS for the compiler
 proc portconfigure::configure_get_universal_cflags {args} {
-    global os.arch os.major
+    global os.arch os.major developer_dir
     set flags [configure_get_universal_archflags]
     # these flags should be valid for C/C++ and similar compiler frontends
     if {${os.arch} == "powerpc" && ${os.major} == "8"} {
-        set flags "-isysroot /Developer/SDKs/MacOSX10.4u.sdk ${flags}"
+        set flags "-isysroot ${developer_dir}/SDKs/MacOSX10.4u.sdk ${flags}"
     }
     return $flags
 }
 
 # internal function to determine the LDFLAGS for the compiler
 proc portconfigure::configure_get_universal_ldflags {args} {
-    global os.arch os.major
+    global os.arch os.major developer_dir
     set flags [configure_get_universal_archflags]
     # works around linking without using the CFLAGS, outside of automake
     if {${os.arch} == "powerpc" && ${os.major} == "8"} {
-        set flags "-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk ${flags}"
+        set flags "-Wl,-syslibroot,${developer_dir}/SDKs/MacOSX10.4u.sdk ${flags}"
     }
     return $flags
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090614/94abd0ca/attachment.html>


More information about the macports-changes mailing list