[92195] trunk/dports/devel/ld64/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sat Apr 21 11:27:31 PDT 2012
Revision: 92195
https://trac.macports.org/changeset/92195
Author: jeremyhu at macports.org
Date: 2012-04-21 11:27:29 -0700 (Sat, 21 Apr 2012)
Log Message:
-----------
ld64: Go back to using env to set CFLAGS because xcode.build.settings bugs when spaces are in the argument. Note that this doesn't work for XCode 2.5.
Modified Paths:
--------------
trunk/dports/devel/ld64/Portfile
Modified: trunk/dports/devel/ld64/Portfile
===================================================================
--- trunk/dports/devel/ld64/Portfile 2012-04-21 18:16:16 UTC (rev 92194)
+++ trunk/dports/devel/ld64/Portfile 2012-04-21 18:27:29 UTC (rev 92195)
@@ -104,12 +104,16 @@
}
if {${os.major} >= 9} {
- xcode.build.settings OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include' \
- OTHER_CPLUSPLUSFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include'
- xcode.destroot.settings OTHER_CFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include' \
- OTHER_CPLUSPLUSFLAGS='[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include'
+ pre-build {
+ set extra_flags "[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include"
+ build.env OTHER_CFLAGS="${extra_flags}" OTHER_CPLUSPLUSFLAGS="${extra_flags}"
+ }
+ pre-destroot {
+ set extra_flags "[exec ${prefix}/bin/llvm-config-mp-${llvm_version} --cflags] -I${prefix}/include"
+ destrootd.env OTHER_CFLAGS="${extra_flags}" OTHER_CPLUSPLUSFLAGS="${extra_flags}"
+ }
} else {
- xcode.build.settings OTHER_CFLAGS='-I${prefix}/include' OTHER_CPLUSPLUSFLAGS='-I${prefix}/include' OTHER_LDFLAGS='-lcrypto'
+ xcode.build.settings OTHER_CFLAGS='-I${prefix}/include' OTHER_CPLUSPLUSFLAGS='-I${prefix}/include' OTHER_LDFLAGS='-lcrypto'
xcode.destroot.settings OTHER_CFLAGS='-I${prefix}/include' OTHER_CPLUSPLUSFLAGS='-I${prefix}/include' OTHER_LDFLAGS='-lcrypto'
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120421/1a3e064a/attachment.html>
More information about the macports-changes
mailing list