mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
remove use of hardcoded -fPIC compiler flag, and use compiler flag dict instead
This commit is contained in:
parent
d7fca7c828
commit
8ed33f1bc7
24 changed files with 41 additions and 40 deletions
|
|
@ -83,8 +83,8 @@ def build(bld):
|
|||
libsmf.use = [ 'libtemporal' ]
|
||||
libsmf.install_path = None
|
||||
if bld.env['build_target'] != 'mingw':
|
||||
libsmf.cxxflags = [ '-fPIC' ]
|
||||
libsmf.cflags = [ '-fPIC' ]
|
||||
libsmf.cxxflags = [ bld.env['compiler_flags_dict']['pic'] ]
|
||||
libsmf.cflags = [ bld.env['compiler_flags_dict']['pic'] ]
|
||||
|
||||
lib_source = '''
|
||||
src/Control.cpp
|
||||
|
|
@ -106,8 +106,8 @@ def build(bld):
|
|||
obj.defines = [ 'LIBEVORAL_DLL_EXPORTS' ]
|
||||
else:
|
||||
obj = bld.stlib(features = 'c cxx cstlib cxxstlib', source=lib_source)
|
||||
obj.cxxflags = [ '-fPIC' ]
|
||||
obj.cflags = [ '-fPIC' ]
|
||||
obj.cxxflags = [ bld.env['compiler_flags_dict']['pic'] ]
|
||||
obj.cflags = [ bld.env['compiler_flags_dict']['pic'] ]
|
||||
obj.defines = [ ]
|
||||
|
||||
obj.export_includes = ['.']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue