summaryrefslogtreecommitdiffstats
path: root/package/wireshark/wireshark-0001-fix-wrong-cflags-for-build-assumption.patch
blob: 14cb957c37a576a9ef60bc534e609bc56bb410ef (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
35
36
37
38
AC_WIRESHARK_GCC_CFLAGS_CHECK checks for valid CFLAGS against CC and pushes
them into CFLAGS and CFLAGS_FOR_BUILD.
This is wrong since CC_FOR_BUILD might be wildly different and older than CC
leading to build errors.

Upstream status: reported in tracker
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9507

Patch status: Interim to fix:
http://autobuild.buildroot.net/results/2b1/2b1a0654b649618422d65edf370b82476ba84491/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

diff -Nura wireshark-1.12.0.orig/acinclude.m4 wireshark-1.12.0/acinclude.m4
--- wireshark-1.12.0.orig/acinclude.m4	2014-09-04 15:45:38.365255309 -0300
+++ wireshark-1.12.0/acinclude.m4	2014-09-04 15:46:23.349810353 -0300
@@ -1755,10 +1755,6 @@
               # just the new option.
               #
               CFLAGS="$CFLAGS_saved $GCC_OPTION"
-              #
-              # Add it to the flags we use when building build tools.
-              #
-              CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION"
             ],
             [
               AC_MSG_RESULT(yes)
@@ -1771,10 +1767,6 @@
           # just the new option.
           #
           CFLAGS="$CFLAGS_saved $GCC_OPTION"
-          #
-          # Add it to the flags we use when building build tools.
-          #
-          CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION"
         fi
       ],
       [