summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-15 18:05:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-15 18:09:52 +0100
commite7135f14f3ef37f93f5c28b319464f3d6dd9b8da (patch)
tree56ee61a5108e9dfac0ef6446efd5c51f078a7886 /meta/recipes-devtools
parentdaa4d625524dc330786858ade570918cff0bc5d3 (diff)
downloadopenembedded-core-e7135f14f3ef37f93f5c28b319464f3d6dd9b8da.tar.gz
openembedded-core-e7135f14f3ef37f93f5c28b319464f3d6dd9b8da.tar.bz2
openembedded-core-e7135f14f3ef37f93f5c28b319464f3d6dd9b8da.zip
gcc-configure-common.inc: Stop gcc looking at build system paths
There were puzzling failures when you make a force recompile of any gcc component. The error was in do_configure with cross-compilation badness being detected in config.log files. gcc is different in that many of the config.log files are generated during the do_compile phase. This means this host contamination issue has always been present but only shows up on a rebuild. The fix is to force the appropriate configuration variable to "none required" then gcc won't look in the bad locations. [YOCTO #2279] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-configure-common.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index 7a96e914b0..9542dc9301 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -107,6 +107,10 @@ do_configure () {
export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}"
+ # We need to set this else there is cross-compilation badness
+ # in the config.log files (which might not get generated until do_compile
+ # hence being missed by the insane do_configure check).
+ export gcc_cv_collect2_libs="none required"
(cd ${S} && gnu-configize) || die "failure running gnu-configize"
oe_runconf