remove use of hardcoded -fPIC compiler flag, and use compiler flag dict instead

This commit is contained in:
Paul Davis 2018-10-14 22:06:11 -04:00
parent d7fca7c828
commit 8ed33f1bc7
24 changed files with 41 additions and 40 deletions

View file

@ -151,8 +151,8 @@ def build(bld):
obj.defines = [ 'LIBPBD_DLL_EXPORTS=1' ]
else:
obj = bld.stlib(features = 'cxx cxxstlib', source=libpbd_sources)
obj.cxxflags = [ '-fPIC' ]
obj.cflags = [ '-fPIC' ]
obj.cxxflags = [ bld.env['compiler_flags_dict']['pic'] ]
obj.cflags = [ bld.env['compiler_flags_dict']['pic'] ]
obj.defines = []
if bld.is_defined('DEBUG_RT_ALLOC'):