Patchwork gcc-cross-initial: Reinstate limits.h generation fix

mail settings
Submitter Richard Purdie
Date Sept. 6, 2012, 3:50 p.m.
Message ID <1346946610.7493.11.camel@ted>
Download mbox | patch
Permalink /patch/36065/
State Accepted
Commit 71854f5c8c6850ed37777cad21acc92fdbea32fc
Headers show


Richard Purdie - Sept. 6, 2012, 3:50 p.m.
The removal of gcc-cross-intermediate inadvertently reintroduced a
problem with the limits.h file being incorrectly/inconsistently
reverted part of:

This reintroduces the protected sysroot ensuring the limits.h file is
always correctly generated. To reproduce the bug, build gcc-cross, then
rebuild gcc-cross-initial and it will reference the limits.h file from
gcc-cross in the sysroot.

Signed-off-by: Richard Purdie <>


diff --git a/meta/recipes-devtools/gcc/ b/meta/recipes-devtools/gcc/
index be47f85..ff6556c 100644
--- a/meta/recipes-devtools/gcc/
+++ b/meta/recipes-devtools/gcc/
@@ -19,7 +19,7 @@  EXTRA_OECONF = "--with-newlib \
                 ${OPTSPACE} \
 		--program-prefix=${TARGET_PREFIX} \
 		--with-sysroot=${STAGING_DIR_TARGET} \
-		--with-build-sysroot=${STAGING_DIR_TARGET} \
+		--with-build-sysroot=${GCCCROSS_BUILDSYSROOT} \
 		${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--with-ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)} \