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.10.3.orig/acinclude.m4 wireshark-1.10.3/acinclude.m4
15 --- wireshark-1.10.3.orig/acinclude.m4 2013-12-04 14:06:44.986074426 -0300
16 +++ wireshark-1.10.3/acinclude.m4 2013-12-04 14:25:36.496356791 -0300
17 @@ -1664,11 +1664,6 @@
18 # the saved value plus just the new option.
20 CFLAGS="$CFLAGS_saved $GCC_OPTION"
22 - # Add it to the flags we use when building
25 - CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION"
26 if test "$2" != C ; then
28 # Add it to the C++ flags as well.
29 @@ -1687,11 +1682,6 @@
30 # the saved value plus just the new option.
32 CFLAGS="$CFLAGS_saved $GCC_OPTION"
34 - # Add it to the flags we use when building
37 - CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION"
38 if test "$2" != C ; then
40 # Add it to the C++ flags as well.