summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-03-30 23:21:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-04 13:50:18 +0100
commita02eb31697cd977f3587f42bb09b8a9ebcca7a4b (patch)
treeb212e727a75d56db2d8ea334830dfb1b266aa7e9 /meta/recipes-devtools
parent207ca9ef61b3f9682534d5aec756180fabf7ba19 (diff)
downloadopenembedded-core-a02eb31697cd977f3587f42bb09b8a9ebcca7a4b.tar.gz
openembedded-core-a02eb31697cd977f3587f42bb09b8a9ebcca7a4b.tar.bz2
openembedded-core-a02eb31697cd977f3587f42bb09b8a9ebcca7a4b.zip
elfutils: fix builds with gcc 4.6
gcc 4.6 (as used in Fedora 15) adds some extra warnings which are included with Werror. The new unused-but-set variable warning causes an error in libasm of elfutils. Work around this by removing unused-but-set from Werror. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.148.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.148.bb b/meta/recipes-devtools/elfutils/elfutils_0.148.bb
index b2f700ede7..c395be81dc 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.148.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.148.bb
@@ -40,6 +40,10 @@ SRC_URI += "\
inherit autotools
+# GCC 4.6.0 raises an unused-but-set warning in libasm, for now remove
+# this warning from Werror
+CFLAGS_virtclass-native += "-Wno-error=unused-but-set-variable"
+
EXTRA_OECONF = "--program-prefix=eu-"
do_configure_prepend() {