Gustavo Zacarias | fd6b999 | 2013-12-04 14:37:27 -0300 | [diff] [blame] | 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. |
| 5 | |
| 6 | Upstream status: reported in tracker |
| 7 | https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9507 |
| 8 | |
| 9 | Patch status: Interim to fix: |
| 10 | http://autobuild.buildroot.net/results/2b1/2b1a0654b649618422d65edf370b82476ba84491/ |
| 11 | |
| 12 | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> |
| 13 | |
Gustavo Zacarias | 8385ebc | 2014-09-04 17:50:38 -0300 | [diff] [blame] | 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. |
| 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 | [ |