0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

SERVER-11264 Include OS X minimum version flag on link lines

This commit is contained in:
Andrew Morrow 2013-10-18 11:30:11 -04:00
parent e8d644bff4
commit 978af98546

View File

@ -1226,9 +1226,11 @@ def doConfigure(myenv):
# This needs to happen before we check for libc++, since it affects whether libc++ is available.
if darwin and has_option('osx-version-min'):
min_version = get_option('osx-version-min')
if not AddToCCFLAGSIfSupported(myenv, '-mmacosx-version-min=%s' % (min_version)):
min_version_flag = '-mmacosx-version-min=%s' % (min_version)
if not AddToCCFLAGSIfSupported(myenv, min_version_flag):
print( "Can't set minimum OS X version with this compiler" )
Exit(1)
myenv.AppendUnique(LINKFLAGS=[min_version_flag])
if has_option('libc++'):
if not using_clang():