use ldflags for wine linking

fixes issue with eg. wine-unstable:
--also-libdir=/usr/lib/i386-linux-gnu/wine-unstable/
This commit is contained in:
Robin Gareus 2014-12-28 15:18:39 +01:00
parent 8bd53e2edb
commit f3604814a4
2 changed files with 2 additions and 0 deletions

View File

@ -393,6 +393,7 @@ def build(bld):
obj.target = 'ardour-' + str (bld.env['VERSION']) + '-vst.exe.so'
obj.includes = [ '../libs/fst', '.' ]
obj.linkflags = ['-mwindows', '-Wl,--export-dynamic']
obj.linkflags += bld.env['LDFLAGS']
obj.defines = ['_POSIX_SOURCE', 'USE_WS_PREFIX']
obj.install_path = bld.env['DLLDIR']
# end of the wine executable

View File

@ -62,6 +62,7 @@ def build(bld):
'vstwin.c',
)
obj.linkflags = ['-mwindows', '-Wl,--export-dynamic']
obj.linkflags += bld.env['LDFLAGS']
obj.target = 'ardour-vst-scanner.exe.so'
obj.uselib = ['GIOMM', 'DL']
obj.use = [ 'libpbd' ]