[OE-core] gcc-configure-common: Use build time sysroot for target gcc

Bogdan Marinescu bogdan.a.marinescu at intel.com
Wed Jun 13 08:20:10 UTC 2012


From: Khem Raj <raj.khem at gmail.com>

From: Khem Raj <raj.khem at gmail.com>

Otherwise it assumes / as sysroot on build host and starts
searching for directories in there.

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
diff --git a/meta/recipes-devtools/gcc/gcc-configure-target.inc b/meta/recipes-devtools/gcc/gcc-configure-target.inc
index 1ee7504..5bca2b7 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-target.inc
@@ -1,4 +1,6 @@
 require gcc-configure-common.inc
 
 EXTRA_OECONF_PATHS = " \
+    --with-sysroot \
+    --with-build-sysroot=${STAGING_DIR_TARGET} \
     --with-gxx-include-dir=${includedir}/c++/"
--
cgit v0.9.0.2-39-g756e




More information about the Openembedded-core mailing list