diff options
| -rw-r--r-- | meta-networking/recipes-support/wireshark/files/Do-not-set-CC_FOR_BUILD-flags.patch | 46 | ||||
| -rw-r--r-- | meta-networking/recipes-support/wireshark/wireshark_1.12.1.bb | 1 |
2 files changed, 47 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/wireshark/files/Do-not-set-CC_FOR_BUILD-flags.patch b/meta-networking/recipes-support/wireshark/files/Do-not-set-CC_FOR_BUILD-flags.patch new file mode 100644 index 0000000000..64a08add79 --- /dev/null +++ b/meta-networking/recipes-support/wireshark/files/Do-not-set-CC_FOR_BUILD-flags.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | [PATCH] Do not set CC_FOR_BUILD flags | ||
| 2 | |||
| 3 | Upstream-status: Pending | ||
| 4 | |||
| 5 | AC_WIRESHARK_COMPILER_FLAGS_CHECK() is checking which options CC is supported, | ||
| 6 | and put the supported options into CFLAGS, but it should not put them into | ||
| 7 | CFLAGS_FOR_BUILD. since CC and BUILD_CC can be different, CFLAGS_FOR_BUILD is | ||
| 8 | used by BUILD_CC | ||
| 9 | |||
| 10 | BUILD_CC is used to generated host tools, do not use the gcc's optimised options, | ||
| 11 | do not effect the running of host tools. so do not set CC_FOR_BUILD flags. | ||
| 12 | |||
| 13 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
| 14 | --- | ||
| 15 | acinclude.m4 | 8 -------- | ||
| 16 | 1 file changed, 8 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/acinclude.m4 b/acinclude.m4 | ||
| 19 | index 136fc27..8d3d360 100644 | ||
| 20 | --- a/acinclude.m4 | ||
| 21 | +++ b/acinclude.m4 | ||
| 22 | @@ -1755,10 +1755,6 @@ if test "x$ac_supports_gcc_flags" = "xyes" ; then | ||
| 23 | # just the new option. | ||
| 24 | # | ||
| 25 | CFLAGS="$CFLAGS_saved $GCC_OPTION" | ||
| 26 | - # | ||
| 27 | - # Add it to the flags we use when building build tools. | ||
| 28 | - # | ||
| 29 | - CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION" | ||
| 30 | ], | ||
| 31 | [ | ||
| 32 | AC_MSG_RESULT(yes) | ||
| 33 | @@ -1771,10 +1767,6 @@ if test "x$ac_supports_gcc_flags" = "xyes" ; then | ||
| 34 | # just the new option. | ||
| 35 | # | ||
| 36 | CFLAGS="$CFLAGS_saved $GCC_OPTION" | ||
| 37 | - # | ||
| 38 | - # Add it to the flags we use when building build tools. | ||
| 39 | - # | ||
| 40 | - CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION" | ||
| 41 | fi | ||
| 42 | ], | ||
| 43 | [ | ||
| 44 | -- | ||
| 45 | 1.9.1 | ||
| 46 | |||
diff --git a/meta-networking/recipes-support/wireshark/wireshark_1.12.1.bb b/meta-networking/recipes-support/wireshark/wireshark_1.12.1.bb index 71cc0823a0..147c513955 100644 --- a/meta-networking/recipes-support/wireshark/wireshark_1.12.1.bb +++ b/meta-networking/recipes-support/wireshark/wireshark_1.12.1.bb | |||
| @@ -8,6 +8,7 @@ DEPENDS = "perl-native libcap libpcap pcre expat glib-2.0 libnl sbc" | |||
| 8 | 8 | ||
| 9 | SRC_URI = " \ | 9 | SRC_URI = " \ |
| 10 | http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-${PV}.tar.bz2 \ | 10 | http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-${PV}.tar.bz2 \ |
| 11 | file://Do-not-set-CC_FOR_BUILD-flags.patch \ | ||
| 11 | " | 12 | " |
| 12 | 13 | ||
| 13 | PE = "1" | 14 | PE = "1" |
