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

jeremyhu at macports.org jeremyhu at macports.org
Fri Apr 20 10:50:24 PDT 2012


Revision: 92159
          https://trac.macports.org/changeset/92159
Author:   jeremyhu at macports.org
Date:     2012-04-20 10:50:24 -0700 (Fri, 20 Apr 2012)
Log Message:
-----------
Use gcc-4.0 if using XCode 3.2 with a Tiger deployment target

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

Modified: trunk/base/src/port1.0/portconfigure.tcl
===================================================================
--- trunk/base/src/port1.0/portconfigure.tcl	2012-04-20 17:50:11 UTC (rev 92158)
+++ trunk/base/src/port1.0/portconfigure.tcl	2012-04-20 17:50:24 UTC (rev 92159)
@@ -429,7 +429,13 @@
     } elseif {[vercmp $xcodeversion 4.0] >= 0} {
         return {llvm-gcc-4.2 clang gcc-4.2}
     } elseif {[vercmp $xcodeversion 3.2] >= 0} {
-        return {gcc-4.2 clang llvm-gcc-4.2 gcc-4.0}
+        if {$macosx_deployment_target == "10.4"} {
+            # It's not the deployment target that is the issue, it's the
+            # 10.4u SDK which base chooses if the deployment_target is set
+            return {gcc-4.0}
+        } else {
+            return {gcc-4.2 clang llvm-gcc-4.2 gcc-4.0}
+        }
     } elseif {[vercmp $xcodeversion 3.0] >= 0} {
         return {gcc-4.2 apple-gcc-4.2 macports-clang-3.0 gcc-4.0}
     } else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120420/a0c00ddf/attachment.html>


More information about the macports-changes mailing list