Avoid setting -stdlib=libc++ if cross compiling - refs mapnik/mapnik-support#96
This commit is contained in:
parent
4494591502
commit
8dcf5aa622
1 changed files with 3 additions and 2 deletions
|
@ -43,8 +43,6 @@ DEFAULT_CXX11_LINKFLAGS = ""
|
|||
if sys.platform == 'darwin':
|
||||
DEFAULT_CC = "clang"
|
||||
DEFAULT_CXX = "clang++"
|
||||
DEFAULT_CXX11_CXXFLAGS += ' -stdlib=libc++'
|
||||
DEFAULT_CXX11_LINKFLAGS = ' -stdlib=libc++'
|
||||
|
||||
py3 = None
|
||||
|
||||
|
@ -1129,6 +1127,9 @@ if not preconfigured:
|
|||
env['LIBPATH'] = ['#src']
|
||||
|
||||
# set any custom cxxflags and ldflags to come first
|
||||
if sys.platform == 'darwin' and not env['HOST']:
|
||||
DEFAULT_CXX11_CXXFLAGS += ' -stdlib=libc++'
|
||||
DEFAULT_CXX11_LINKFLAGS = ' -stdlib=libc++'
|
||||
env.Append(CPPDEFINES = env['CUSTOM_DEFINES'])
|
||||
env.Append(CUSTOM_CXXFLAGS = DEFAULT_CXX11_CXXFLAGS)
|
||||
env.Append(CXXFLAGS = env['CUSTOM_CXXFLAGS'])
|
||||
|
|
Loading…
Reference in a new issue