From: Khem Raj <[email protected]>

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

Signed-off-by: Khem Raj <[email protected]>
---
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

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to