]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-configure-common: Use build time sysroot for target gcc
authorKhem Raj <raj.khem@gmail.com>
Tue, 12 Jun 2012 22:11:36 +0000 (15:11 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Jun 2012 10:49:18 +0000 (11:49 +0100)
Otherwise it assumes / as sysroot on build host and starts
searching for directories in there.

[RP: Tweak to add missing = for consistent syntax]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/recipes-devtools/gcc/gcc-configure-target.inc

index 1ee75048bad6e6ad24071c8f7ac1288db14a1f60..b1ac4ff7773798cae3a17c87550ed8e4f8836c5f 100644 (file)
@@ -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++/"