[46928] trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl

mcalhoun at macports.org mcalhoun at macports.org
Tue Feb 17 15:23:15 PST 2009


Revision: 46928
          http://trac.macports.org/changeset/46928
Author:   mcalhoun at macports.org
Date:     2009-02-17 15:23:14 -0800 (Tue, 17 Feb 2009)
Log Message:
-----------
muniversal-1.0.tcl: portconfigure.tcl sets --host and --target if there is only one universal architecture.
Undo this behavior in the muniversal PortGroup.
Attempt to fix comment:9 of #18187.

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl	2009-02-17 23:02:35 UTC (rev 46927)
+++ trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl	2009-02-17 23:23:14 UTC (rev 46928)
@@ -72,6 +72,13 @@
         configure.ldflags-delete   -arch ${arch}
     }
 
+    # undo setting of --host and --target from portconfigure.tcl procedure configure_get_universal_args
+    set undo_system_value [configure_get_universal_system_name]
+    if {[llength ${configure.universal_archs}] == 1 &&
+        [info exists undo_system_value] && $undo_system_value != ""} {
+        configure.args-delete --host=${undo_system_value} --target=${undo_system_value}
+    }
+
     # user has specified that build platform must be able to run binaries for supported architectures
     if { ${merger_must_run_binaries}=="yes" } {
         if { ${os.arch}=="i386" } {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090217/ed02182c/attachment.html>


More information about the macports-changes mailing list