From 209fba2113960752a07192eef534452a48e46c5c Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Fri, 14 Sep 2012 11:19:48 +0200 Subject: config: differenciate the SDK version to use and the min SDK version to target --- config/darwin.config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'config') 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, '') -- cgit v1.2.3