generic-poky/meta/recipes-devtools/gcc
Mark Hatle 216e4dc4aa gcc: When cross compiling a target gcc, target flags may be used on the host
The original fix worked some of the time, but not on all machines.  Fix
this by applying the change in a different way.  Following the example of
the existing BUILD_CFLAGS.

Below is the commit message from the original change to help explain why
this is needed:

Configure identifies a number of warning flags (WARN_CFLAGS and
WARN_CXXFLAGS) from the $CC value.  The cross compiler may be different
from the host compiler and may not support the same set of flags.  This
leads to problems such as:

cc1plus: error: unrecognized command line option "-Wno-narrowing"
cc1plus: error: unrecognized command line option "-Wno-overlength-strings"

Work around this problem by removing the warning flags from the
BUILD_CXXFLAGS value, in a way similar to the BUILD_CFLAGS.

(From OE-Core rev: be21c6e8e4f810e826538337dac6e34ed96e1f6f)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-06-25 17:44:58 +01:00
..
gcc-4.7 gcc-4.7: fix gcc ICE when building with gcc-4.8 2013-05-03 16:19:20 +01:00
gcc-4.8 gcc: When cross compiling a target gcc, target flags may be used on the host 2013-06-25 17:44:58 +01:00
gcc-4.7.inc gcc-4.7: fix gcc ICE when building with gcc-4.8 2013-05-03 16:19:20 +01:00
gcc-4.8.inc gcc-4.8: Backport fix for ICE triggered in pixman 2013-06-18 17:33:16 +01:00
gcc-common.inc gcc-common: Exclude AVAILTUNES from sstate checksums 2013-03-18 13:18:21 +00:00
gcc-configure-common.inc gcc: enable multilib for target gcc 2013-02-01 15:54:31 +00:00
gcc-configure-cross.inc gcc-configure-cross.inc: Remove info generation 2013-05-09 08:51:13 +01:00
gcc-configure-runtime.inc gcc-runtime: Avoid error when trying to remove nonexistent directories 2013-05-03 16:19:20 +01:00
gcc-configure-sdk.inc gcc-configure-sdk, gcc-configure-cross: Dont recompute USE_NLS 2012-06-29 13:30:58 +01:00
gcc-configure-target.inc gcc-configure-target: Add --enable-dependency-tracking to EXTRA_OECONF 2013-05-08 15:41:14 +01:00
gcc-cross-canadian.inc gcc-cross-canadian: enable multilib support 2013-02-11 22:49:27 +00:00
gcc-cross-canadian_4.7.bb nativesdk: Switch to using nativesdk as a prefix, not a suffix 2012-09-02 05:52:06 -07:00
gcc-cross-canadian_4.8.bb gcc-4.8: Add recipes 2013-04-22 14:45:04 +01:00
gcc-cross-initial.inc classes: Be consistent about sstate-inputdirs/outputdirs ending with '/' 2012-11-14 14:38:28 +00:00
gcc-cross-initial_4.7.bb gcc-4.7: Use full relative path in require directive 2012-04-30 11:37:26 +01:00
gcc-cross-initial_4.8.bb gcc-4.8: Add recipes 2013-04-22 14:45:04 +01:00
gcc-cross.inc gcc-cross: Explicitly depend on linux-libc-headers 2012-11-24 15:12:28 +00:00
gcc-cross4.inc gcc-4.6: fix toolchain build for SH4 2011-11-16 17:32:45 +00:00
gcc-cross_4.7.bb gcc-4.7: Do not use --with-header option for cross-gcc 2012-04-30 11:37:27 +01:00
gcc-cross_4.8.bb gcc-4.8: Add recipes 2013-04-22 14:45:04 +01:00
gcc-crosssdk-initial.inc gcc-crosssdk-initial: Ensure native dependencies are built, these can differ accross different gcc versions causing build failures 2010-09-06 22:55:49 +01:00
gcc-crosssdk-initial_4.7.bb gcc-crosssdk-initial_4.7.bb: Add --with-native-system-header-dir to EXTRA_OECONF 2012-08-21 12:15:32 +01:00
gcc-crosssdk-initial_4.8.bb gcc-4.8: Add recipes 2013-04-22 14:45:04 +01:00
gcc-crosssdk.inc nativesdk: Switch to using nativesdk as a prefix, not a suffix 2012-09-02 05:52:06 -07:00
gcc-crosssdk_4.7.bb gcc-4.7: Use full relative path in require directive 2012-04-30 11:37:26 +01:00
gcc-crosssdk_4.8.bb gcc-4.8: Add recipes 2013-04-22 14:45:04 +01:00
gcc-multilib-config.inc gcc-cross-canadian: enable multilib support 2013-02-11 22:49:27 +00:00
gcc-package-cross.inc Split do_packagedata task from do_package 2013-01-25 12:42:47 +00:00
gcc-package-runtime.inc Split do_packagedata task from do_package 2013-01-25 12:42:47 +00:00
gcc-package-sdk.inc gcc-cross-canadian: do not create symlinks to non-existent binaries 2013-03-16 17:53:59 +00:00
gcc-package-target.inc gcc: target: fix libiberty removal 2013-02-04 16:42:50 +00:00
gcc-runtime_4.7.bb gcc-4.7: Use full relative path in require directive 2012-04-30 11:37:26 +01:00
gcc-runtime_4.8.bb gcc-4.8: Add recipes 2013-04-22 14:45:04 +01:00
gcc_4.7.bb gcc: add build directory to include directories 2013-06-04 15:55:46 +01:00
gcc_4.8.bb gcc: add build directory to include directories 2013-06-04 15:55:46 +01:00
libgcc_4.7.bb libgcc: Disable multilib install for nativesdk 2013-02-05 15:22:45 +00:00
libgcc_4.8.bb gcc-4.8: Add recipes 2013-04-22 14:45:04 +01:00