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

This commit is contained in:
Paul Davis 2013-10-17 13:51:02 -04:00
parent 98c93ee53e
commit 2eabeebdc5
3 changed files with 16 additions and 12 deletions

View file

@ -117,11 +117,13 @@ def build(bld):
obj.defines = [ 'LIBPBD_DLL=1',
'LIBPBD_DLL_EXPORTS=1'
]
obj.cxxflags = [ '-fvisibility=hidden' ]
obj.cflags = [ '-fvisibility=hidden' ]
else:
print('BUILD STATIC LIB')
obj = bld.stlib(features = 'cxx cxxstlib', source=libpbd_sources)
obj.cxxflags = [ '-fPIC' ]
obj.cflags = [ '-fPIC' ]
obj.defines = []
if bld.is_defined('DEBUG_RT_ALLOC'):