summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-15 17:05:53 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-15 17:09:57 (GMT)
commit2ddf7d3e8326e8cb07101ddb2d6e5dc6866371e2 (patch)
tree55f92df9706f77537eaa7105f22cd2a08f6016a0 /meta/recipes-devtools/gcc
parentf580ac6b30d39353ebc26ef7ef06e90334d977e2 (diff)
downloadpoky-2ddf7d3e8326e8cb07101ddb2d6e5dc6866371e2.tar.gz
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] (From OE-Core rev: e7135f14f3ef37f93f5c28b319464f3d6dd9b8da) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-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 7a96e91..9542dc9 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 () {
107 export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}" 107 export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
108 export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}" 108 export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
109 export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}" 109 export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}"
110 # We need to set this else there is cross-compilation badness
111 # in the config.log files (which might not get generated until do_compile
112 # hence being missed by the insane do_configure check).
113 export gcc_cv_collect2_libs="none required"
110 (cd ${S} && gnu-configize) || die "failure running gnu-configize" 114 (cd ${S} && gnu-configize) || die "failure running gnu-configize"
111 115
112 oe_runconf 116 oe_runconf