summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-12-28 15:18:39 +0100
committerRobin Gareus <robin@gareus.org>2014-12-28 15:18:39 +0100
commitf3604814a450d750f70c01a3bb7116bc68c19858 (patch)
treeadcb8225479d0a46f3e553c1166724934e30c991
parent8bd53e2edb5212b32732789312b964fd24e305b9 (diff)
use ldflags for wine linking
fixes issue with eg. wine-unstable: --also-libdir=/usr/lib/i386-linux-gnu/wine-unstable/
-rw-r--r--gtk2_ardour/wscript1
-rw-r--r--libs/fst/wscript1
2 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript
index 3072e54436..b0d4917151 100644
--- a/gtk2_ardour/wscript
+++ b/gtk2_ardour/wscript
@@ -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
diff --git a/libs/fst/wscript b/libs/fst/wscript
index 8e9b4ab2dc..c2afdd71fa 100644
--- a/libs/fst/wscript
+++ b/libs/fst/wscript
@@ -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' ]