summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-09-14 11:19:48 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-09-14 11:42:34 +0200
commit209fba2113960752a07192eef534452a48e46c5c (patch)
tree9dc5ce581e6d6356146c966f7a7f20188301aa60 /config
parent9e9bf7c633b3ec905bd8a02f3133dbc138a8a5f1 (diff)
config: differenciate the SDK version to use and the min SDK version to target
Diffstat (limited to 'config')
-rw-r--r--config/darwin.config7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/darwin.config b/config/darwin.config
index 7f09424..069defb 100644
--- a/config/darwin.config
+++ b/config/darwin.config
@@ -53,16 +53,17 @@ SDK_VERSION = {
DistroVersion.OS_X_MOUNTAIN_LION: '10.8',
}
-# The SDK target can be overriden in configure with 'min_osx_sdk_version' for instance
+# The SDK target can be overriden in configure with 'osx_target_sdk_version' for instance
# to target the 10.5 SDK
-sdk_version = min_osx_sdk_version or SDK_VERSION[distro_version]
+sdk_version = osx_target_sdk_version or SDK_VERSION[distro_version]
# For Xcode >= 4.3, the SDK is installed in a completely different path
sdk_root = '/Developer/SDKs/MacOSX%s.sdk' % sdk_version
if not os.path.exists(sdk_root):
sdk_root = '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX%s.sdk' % sdk_version
-sdk='-mmacosx-version-min=%s -isysroot %s' % (sdk_version, sdk_root)
+min_osx_sdk_version = min_osx_sdk_version or '10.5'
+sdk='-mmacosx-version-min=%s -isysroot %s' % (min_osx_sdk_version, sdk_root)
for f in ['CFLAGS', 'CCASFLAGS', 'CXXFLAGS', 'OBJCFLAGS', 'LDFLAGS']:
os.environ[f] = os.environ.get(f, '')