Change --exclude-libs to be for Linux only. Apple's linker does not support it.
This commit is contained in:
parent
05c7bd4be9
commit
3c24ce4d7b
@ -216,7 +216,7 @@ class SMConfig(object):
|
|||||||
'-Wno-overloaded-virtual',
|
'-Wno-overloaded-virtual',
|
||||||
'-fvisibility-inlines-hidden',
|
'-fvisibility-inlines-hidden',
|
||||||
]
|
]
|
||||||
cxx.linkflags += ['-m32', '-Wl,--exclude-libs,ALL']
|
cxx.linkflags += ['-m32']
|
||||||
|
|
||||||
have_gcc = cxx.vendor == 'gcc'
|
have_gcc = cxx.vendor == 'gcc'
|
||||||
have_clang = cxx.vendor == 'clang'
|
have_clang = cxx.vendor == 'clang'
|
||||||
@ -292,7 +292,7 @@ class SMConfig(object):
|
|||||||
|
|
||||||
def configure_linux(self, cxx):
|
def configure_linux(self, cxx):
|
||||||
cxx.defines += ['_LINUX', 'POSIX']
|
cxx.defines += ['_LINUX', 'POSIX']
|
||||||
cxx.linkflags += ['-lm']
|
cxx.linkflags += ['-Wl,--exclude-libs,ALL', '-lm']
|
||||||
if cxx.vendor == 'gcc':
|
if cxx.vendor == 'gcc':
|
||||||
cxx.linkflags += ['-static-libgcc']
|
cxx.linkflags += ['-static-libgcc']
|
||||||
elif cxx.vendor == 'clang':
|
elif cxx.vendor == 'clang':
|
||||||
|
Loading…
Reference in New Issue
Block a user