blob: 14cb957c37a576a9ef60bc534e609bc56bb410ef [file] [log] [blame]
Gustavo Zacariasfd6b9992013-12-04 14:37:27 -03001AC_WIRESHARK_GCC_CFLAGS_CHECK checks for valid CFLAGS against CC and pushes
2them into CFLAGS and CFLAGS_FOR_BUILD.
3This is wrong since CC_FOR_BUILD might be wildly different and older than CC
4leading to build errors.
5
6Upstream status: reported in tracker
7https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9507
8
9Patch status: Interim to fix:
10http://autobuild.buildroot.net/results/2b1/2b1a0654b649618422d65edf370b82476ba84491/
11
12Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
13
Gustavo Zacarias8385ebc2014-09-04 17:50:38 -030014diff -Nura wireshark-1.12.0.orig/acinclude.m4 wireshark-1.12.0/acinclude.m4
15--- wireshark-1.12.0.orig/acinclude.m4 2014-09-04 15:45:38.365255309 -0300
16+++ wireshark-1.12.0/acinclude.m4 2014-09-04 15:46:23.349810353 -0300
17@@ -1755,10 +1755,6 @@
18 # just the new option.
19 #
20 CFLAGS="$CFLAGS_saved $GCC_OPTION"
21- #
22- # Add it to the flags we use when building build tools.
23- #
24- CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION"
25 ],
26 [
27 AC_MSG_RESULT(yes)
28@@ -1771,10 +1767,6 @@
29 # just the new option.
30 #
31 CFLAGS="$CFLAGS_saved $GCC_OPTION"
32- #
33- # Add it to the flags we use when building build tools.
34- #
35- CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION"
36 fi
37 ],
38 [