[43621] trunk/dports/_resources/port1.0/group/xcode-1.0.tcl
jmr at macports.org
jmr at macports.org
Fri Dec 12 09:48:20 PST 2008
Revision: 43621
http://trac.macports.org/changeset/43621
Author: jmr at macports.org
Date: 2008-12-12 09:48:19 -0800 (Fri, 12 Dec 2008)
Log Message:
-----------
XCode portgroup: use SDKROOT instead of -sdk on Tiger and earlier (#17610)
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/xcode-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/xcode-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/xcode-1.0.tcl 2008-12-12 16:31:12 UTC (rev 43620)
+++ trunk/dports/_resources/port1.0/group/xcode-1.0.tcl 2008-12-12 17:48:19 UTC (rev 43621)
@@ -272,7 +272,11 @@
if {[variant_isset universal]} {
set xcode_build_args "$xcode_build_args ${xcode.universal.settings}"
if {"${xcode.universal.sdk}" != ""} {
- set xcode_build_args "-sdk ${xcode.universal.sdk} $xcode_build_args"
+ if {${os.major} >= 9} {
+ set xcode_build_args "-sdk ${xcode.universal.sdk} $xcode_build_args"
+ } else {
+ set xcode_build_args "SDKROOT=\"${xcode.universal.sdk}\" $xcode_build_args"
+ }
}
}
@@ -312,7 +316,11 @@
if {[variant_isset universal]} {
set xcode_build_args "$xcode_build_args ${xcode.universal.settings}"
if {"${xcode.universal.sdk}" != ""} {
- set xcode_build_args "-sdk ${xcode.universal.sdk} $xcode_build_args"
+ if {${os.major} >= 9} {
+ set xcode_build_args "-sdk ${xcode.universal.sdk} $xcode_build_args"
+ } else {
+ set xcode_build_args "SDKROOT=\"${xcode.universal.sdk}\" $xcode_build_args"
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081212/75928e06/attachment.html>
More information about the macports-changes
mailing list