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

afb at macports.org afb at macports.org
Tue Dec 9 03:06:45 PST 2008


Revision: 43336
          http://trac.macports.org/changeset/43336
Author:   afb at macports.org
Date:     2008-12-09 03:06:45 -0800 (Tue, 09 Dec 2008)
Log Message:
-----------
allow some other platforms to compile too

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

Modified: trunk/base/src/port1.0/portconfigure.tcl
===================================================================
--- trunk/base/src/port1.0/portconfigure.tcl	2008-12-09 11:06:08 UTC (rev 43335)
+++ trunk/base/src/port1.0/portconfigure.tcl	2008-12-09 11:06:45 UTC (rev 43336)
@@ -146,6 +146,7 @@
 
     set name ""
     switch -exact ${configure.compiler} {
+        gcc { set name "System gcc" }
         gcc-3.3 { set name "Mac OS X gcc 3.3" }
         gcc-4.0 { set name "Mac OS X gcc 4.0" }
         gcc-4.2 { set name "Mac OS X gcc 4.2" }
@@ -261,6 +262,8 @@
         "darwin 8" { set compiler gcc-4.0 }
         "darwin 9" { set compiler gcc-4.0 }
         "darwin 10" { set compiler llvm-gcc-4.2 }
+        "freebsd 7" { set compiler gcc }
+        "linux 2" { set compiler gcc }
     }
     return $compiler
 }
@@ -270,6 +273,14 @@
     global configure.compiler prefix
     set ret ""
     switch -exact ${configure.compiler} {
+        gcc {
+            switch -exact ${type} {
+                cc   { set ret /usr/bin/gcc }
+                objc { set ret /usr/bin/gcc }
+                cxx  { set ret /usr/bin/g++ }
+                cpp  { set ret /usr/bin/cpp }
+            }
+        }
         gcc-3.3 {
             switch -exact ${type} {
                 cc   { set ret /usr/bin/gcc-3.3 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081209/2cc9d28c/attachment.html>


More information about the macports-changes mailing list