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

@ -22,12 +22,12 @@ def configure(conf):
def build(bld):
obj=bld.stlib (source = ['lua.cc', 'luastate.cc'],
cflags = [ '-fPIC' ],
cxxflags = [ '-fPIC' ],
includes = ['.'],
export_includes = ['.'],
target = 'liblua',
uselib = [ 'SIGCPP', 'DL' ]
cflags = [ bld.env['compiler_flags_dict']['pic'] ],
cxxflags = [ bld.env['compiler_flags_dict']['pic'] ],
includes = ['.'],
export_includes = ['.'],
target = 'liblua',
uselib = [ 'SIGCPP', 'DL' ]
)
autowaf.ensure_visible_symbols (obj, True)