[53142] trunk/base/src/port1.0/portconfigure.tcl
jmr at macports.org
jmr at macports.org
Tue Jun 30 02:06:15 PDT 2009
Revision: 53142
http://trac.macports.org/changeset/53142
Author: jmr at macports.org
Date: 2009-06-30 02:06:15 -0700 (Tue, 30 Jun 2009)
Log Message:
-----------
use append rather than set where appropriate in portconfigure
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-06-30 08:58:13 UTC (rev 53141)
+++ trunk/base/src/port1.0/portconfigure.tcl 2009-06-30 09:06:15 UTC (rev 53142)
@@ -110,13 +110,13 @@
set flags "-m32 ${flags}"
}
if {[info exists configure.march] && ${configure.march} != {}} {
- set flags "${flags} -march=${configure.march}"
+ append flags " -march=${configure.march}"
}
if {[info exists configure.mtune] && ${configure.mtune} != {}} {
- set flags "${flags} -mtune=${configure.mtune}"
+ append flags " -mtune=${configure.mtune}"
}
if {[variant_isset universal] && ${configure.universal_cflags} != ""} {
- set flags "${flags} ${configure.universal_cflags}"
+ append flags " ${configure.universal_cflags}"
}
return $flags
}
@@ -125,7 +125,7 @@
global prefix configure.universal_cppflags
set flags "-I${prefix}/include"
if {[variant_isset universal] && ${configure.universal_cppflags} != ""} {
- set flags "${flags} ${configure.universal_cppflags}"
+ append flags " ${configure.universal_cppflags}"
}
return $flags
}
@@ -134,7 +134,7 @@
global prefix configure.universal_ldflags
set flags "-L${prefix}/lib"
if {[variant_isset universal] && ${configure.universal_ldflags} != ""} {
- set flags "${flags} ${configure.universal_ldflags}"
+ append flags " ${configure.universal_ldflags}"
}
return $flags
}
@@ -208,7 +208,7 @@
global prefix configure.universal_args
set result "--prefix=${prefix}"
if {[variant_isset universal] && ${configure.universal_args} != ""} {
- set result "$result ${configure.universal_args}"
+ append result " ${configure.universal_args}"
}
return $result
}
@@ -221,7 +221,7 @@
if {$flags == ""} {
set flags "-arch $arch"
} else {
- set flags "$flags -arch $arch"
+ append flags " -arch $arch"
}
}
return $flags
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090630/df7d49fa/attachment.html>
More information about the macports-changes
mailing list