use ldflags for wine linking
authorRobin Gareus <robin@gareus.org>
Sun, 28 Dec 2014 14:18:39 +0000 (15:18 +0100)
committerRobin Gareus <robin@gareus.org>
Sun, 28 Dec 2014 14:18:39 +0000 (15:18 +0100)
fixes issue with eg. wine-unstable:
--also-libdir=/usr/lib/i386-linux-gnu/wine-unstable/

gtk2_ardour/wscript
libs/fst/wscript

index 3072e54436d4af460db869ecd6df2612b5f878f7..b0d49171519246ff281386fe2bcf2b4a1288cded 100644 (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
index 8e9b4ab2dc5ebfd2e04ad5e3b7fe1e1ed3b405a2..c2afdd71faf51bc16f4eeba7a17d1a12f090ff66 100644 (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' ]