diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-17 15:02:20 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-17 15:02:20 -0400 |
commit | 61c1956ef994483d92828169b7b032d5520d2256 (patch) | |
tree | 9c2b73ed47a1020d4803ad2d5a848d2af7b2c87e /libs/evoral/wscript | |
parent | 2fab8182cc1e40844652922acf56cc0d71bc2051 (diff) |
add -fvisibility=hidden to evoral, and make things work
Diffstat (limited to 'libs/evoral/wscript')
-rw-r--r-- | libs/evoral/wscript | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/evoral/wscript b/libs/evoral/wscript index f309bc7031..569aa0fc6b 100644 --- a/libs/evoral/wscript +++ b/libs/evoral/wscript @@ -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' ] |