1 AC_WIRESHARK_GCC_CFLAGS_CHECK checks for valid CFLAGS against CC and pushes
2 them into CFLAGS and CFLAGS_FOR_BUILD.
3 This is wrong since CC_FOR_BUILD might be wildly different and older than CC
4 leading to build errors.
6 Upstream status: reported in tracker
7 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9507
9 Patch status: Interim to fix:
10 http://autobuild.buildroot.net/results/2b1/2b1a0654b649618422d65edf370b82476ba84491/
12 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
14 diff -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.
20 CFLAGS="$CFLAGS_saved $GCC_OPTION"
22 - # Add it to the flags we use when building build tools.
24 - CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION"
28 @@ -1771,10 +1767,6 @@
29 # just the new option.
31 CFLAGS="$CFLAGS_saved $GCC_OPTION"
33 - # Add it to the flags we use when building build tools.
35 - CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION"