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

source_changes at macosforge.org source_changes at macosforge.org
Sun Mar 25 15:55:39 PDT 2007


Revision: 23125
          http://trac.macosforge.org/projects/macports/changeset/23125
Author:   pguyot at kallisys.net
Date:     2007-03-25 15:55:39 -0700 (Sun, 25 Mar 2007)

Log Message:
-----------
Flatten the environment before parsing it to add configure flages the same way it will be flattened later. This restores compatibility with cross/ ports that use [list] to define their environment.

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

Modified: trunk/base/src/port1.0/portconfigure.tcl
===================================================================
--- trunk/base/src/port1.0/portconfigure.tcl	2007-03-25 22:41:41 UTC (rev 23124)
+++ trunk/base/src/port1.0/portconfigure.tcl	2007-03-25 22:55:39 UTC (rev 23125)
@@ -106,7 +106,13 @@
 		}
 	} elseif {[tbool use_configure]} {
     	# Merge (ld|c|cpp|cxx)flags into the environment variable.
-    	parse_environment ${configure.env} parsed_env
+    	# Flatten the environment string.
+    	set env_str ""
+    	foreach str [set configure.env] {
+    		set env_str "$env_str $str"
+    	}
+    	parse_environment $env_str parsed_env
+    	# Append configure flags.
 		append_list_to_environment_value parsed_env "CFLAGS" ${configure.cflags}
 		append_list_to_environment_value parsed_env "CPPFLAGS" ${configure.cppflags}
 		append_list_to_environment_value parsed_env "CXXFLAGS" ${configure.cxxflags}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070325/1c85797d/attachment.html


More information about the macports-changes mailing list