mingw: all code is position independent

This commit is contained in:
Robin Gareus 2015-03-11 14:58:02 +01:00
parent 77821ba373
commit 99260742d2
3 changed files with 10 additions and 6 deletions

View file

@ -83,13 +83,15 @@ def build(bld):
'portmidi/src/pm_common'
]
obj.cxxflags = [ '-fPIC' ]
obj.cflags = [ '-fPIC', '-fms-extensions' ]
obj.name = 'waves_audiobackend'
obj.target = 'waves_audiobackend'
obj.use = 'libardour libpbd'
if bld.env['build_target'] == 'mingw':
obj.uselib = ['PORTAUDIO']
obj.cxxflags = [ '-fPIC' ]
obj.cflags = [ '-fPIC', '-fms-extensions' ]
else:
obj.cflags = ['-fms-extensions' ]
obj.install_path = os.path.join(bld.env['LIBDIR'], 'backends')
if bld.env['build_target']== 'mingw':