add -fvisibility=hidden to evoral, and make things work

This commit is contained in:
Paul Davis
2013-10-17 15:02:20 -04:00
parent 2fab8182cc
commit 61c1956ef9
12 changed files with 19 additions and 13 deletions

View File

@@ -90,8 +90,12 @@ def build(bld):
# Library
if bld.is_defined ('INTERNAL_SHARED_LIBS'):
obj = bld.shlib(features = 'c cxx cshlib cxxshlib', source=lib_source)
# DLL exports for this library
obj.defines = [ 'LIBEVORAL_DLL=1', 'LIBEVORAL_DLL_EXPORTS=1' ]
obj.defines = [ 'LIBPBD_DLL=1' ]
# DLL imports for other libraries
obj.defines += [ 'LIBPBD_DLL=1' ]
obj.cxxflags = [ '-fvisibility=hidden' ]
obj.cflags = [ '-fvisibility=hidden' ]
else:
obj = bld.stlib(features = 'c cxx cstlib cxxstlib', source=lib_source)
obj.cxxflags = [ '-fPIC' ]