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

toby at macports.org toby at macports.org
Tue May 12 23:20:36 PDT 2009


Revision: 50934
          http://trac.macports.org/changeset/50934
Author:   toby at macports.org
Date:     2009-05-12 23:20:36 -0700 (Tue, 12 May 2009)
Log Message:
-----------
Passing the same value for --host and --target has no effect.
Furthermore, even if we did pass different values, I've never seen a
configure script that properly handles cross-compiling anyway.

Just one small step towards universal build sanity...

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-05-13 06:18:50 UTC (rev 50933)
+++ trunk/base/src/port1.0/portconfigure.tcl	2009-05-13 06:20:36 UTC (rev 50934)
@@ -204,38 +204,9 @@
     # end gsoc08-privileges
 }
 
-# internal function to determine canonical system name for configure
-proc portconfigure::configure_get_universal_system_name {args} {
-    global configure.universal_target configure.universal_archs
-    set arch "unknown"
-    switch -- ${configure.universal_archs} {
-        "ppc"  { set arch "powerpc" }
-        "i386"  { set arch "i686" }
-        "ppc64"  { set arch "powerpc" }
-        "x86_64"  { set arch "i686" }
-    }
-    switch -- ${configure.universal_target} {
-        "10.1"  { return "powerpc-apple-darwin5" }
-                # /Developer/SDKs/MacOSX10.1.5.sdk
-        "10.2"  { return "powerpc-apple-darwin6" }
-                # /Developer/SDKs/MacOSX10.2.8.sdk
-        "10.3"  { return "powerpc-apple-darwin7" }
-                # /Developer/SDKs/MacOSX10.3.9.sdk
-        "10.4"  { return "${arch}-apple-darwin8" }
-        "10.5"  { return "${arch}-apple-darwin9" }
-    }
-    return ""
-}
-
 # internal function to determine the universal args for configure.cmd
 proc portconfigure::configure_get_universal_args {args} {
-    global configure.universal_archs
-    set system [configure_get_universal_system_name]
     set params "--disable-dependency-tracking"
-    if {[llength ${configure.universal_archs}] == 1 &&
-        [info exists system] && $system != ""} {
-        set params "$params --host=${system} --target=${system}"
-    }
     return $params
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090512/c88195e3/attachment.html>


More information about the macports-changes mailing list