Merge pull request #469 from alliedmodders/static-lib-sym-vis

Don't export (all) symbols from included static lib on Linux/Mac.
This commit is contained in:
Nicholas Hastings 2016-01-09 11:34:09 -05:00
commit 441bb0483a

View File

@ -216,7 +216,7 @@ class SMConfig(object):
'-Wno-overloaded-virtual', '-Wno-overloaded-virtual',
'-fvisibility-inlines-hidden', '-fvisibility-inlines-hidden',
] ]
cxx.linkflags += ['-m32'] cxx.linkflags += ['-m32', '-Wl,--exclude-libs,ALL']
have_gcc = cxx.vendor == 'gcc' have_gcc = cxx.vendor == 'gcc'
have_clang = cxx.vendor == 'clang' have_clang = cxx.vendor == 'clang'