gcc-runtime_4.5.1.bb: Fix ICE in gcc-runtime with -feliminate-dwarf2-dups

GCC 4.5 ends up in an ICE when compiling libstdc++ pre compiled header
so we eliminate -feliminate-dwarf2-dups for gcc-runtime

(From OE-Core rev: e0eeb10144db74c0671acd684059e8a6f82a572f)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj 2011-03-18 14:29:59 -07:00 committed by Richard Purdie
parent 54d46cb693
commit b6b9f7ae63
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
PR = "r4"
PR = "r5"
require gcc-${PV}.inc
require gcc-configure-runtime.inc
@ -9,3 +9,8 @@ SRC_URI_append = "file://fortran-cross-compile-hack.patch"
ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_INCDIR}"
EXTRA_OECONF += "--disable-libunwind-exceptions"
# gcc 4.5 ends up in ICE when using -feliminate-dwarf2-dups in libstdc++
# compiling pre compiled headers so we remove this option when compiling
# to workaround it
CXXFLAGS := "${@oe_filter_out('-feliminate-dwarf2-dups', '${CXXFLAGS}', d)}"