summaryrefslogtreecommitdiff
blob: 7c0e883d697d5c389ff33fe75e80cc71a81cc689 (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
diff -Naur a/tools/cross-wine32.in b/tools/cross-wine32.in
--- a/tools/cross-wine32.in	2019-09-25 13:25:24.000000000 +0100
+++ b/tools/cross-wine32.in	2019-09-30 23:05:00.121344967 +0100
@@ -5,8 +5,8 @@
 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
 
 [host_machine]
diff -Naur a/tools/cross-wine64.in b/tools/cross-wine64.in
--- a/tools/cross-wine64.in	2019-09-25 13:25:24.000000000 +0100
+++ b/tools/cross-wine64.in	2019-09-30 23:04:57.340283350 +0100
@@ -5,8 +5,8 @@
 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
 
 [host_machine]