summaryrefslogtreecommitdiff
blob: fed5c0403688bb3bef1db5f3a743adf7d0768cd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
diff --git a/tools/cross-wine32.in b/tools/cross-wine32.in
index bfbe410..0064cf8 100644
--- a/tools/cross-wine32.in
+++ b/tools/cross-wine32.in
@@ -5,9 +5,10 @@ strip = 'strip'
 pkgconfig = '@PKG_CONFIG@'
 
 [properties]
-c_args = ['-m32']
-c_link_args = ['-m32', '-mwindows']
+c_args = @CFLAGS@ + ['-m32']
+c_link_args = @LDFLAGS@ + ['-m32', '-mwindows']
 needs_exe_wrapper = true
+pkg_config_libdir = '@PKG_CONFIG_LIBDIR@'
 
 [host_machine]
 system = 'linux'
diff --git a/tools/cross-wine64.in b/tools/cross-wine64.in
index 5e19023..06b1f2a 100644
--- a/tools/cross-wine64.in
+++ b/tools/cross-wine64.in
@@ -5,9 +5,10 @@ strip = 'strip'
 pkgconfig = '@PKG_CONFIG@'
 
 [properties]
-c_args = ['-m64']
-c_link_args = ['-m64', '-mwindows']
+c_args = @CFLAGS@ + ['-m64']
+c_link_args = @LDFLAGS@ + ['-m64', '-mwindows']
 needs_exe_wrapper = true
+pkg_config_libdir = '@PKG_CONFIG_LIBDIR@'
 
 [host_machine]
 system = 'linux'