From patchwork Wed Jun 13 08:26:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: gcc-configure-common: Use build time sysroot for target gcc Date: Wed, 13 Jun 2012 08:26:15 -0000 From: Bogdan Marinescu X-Patchwork-Id: 29779 Message-Id: <1339575975-22078-1-git-send-email-bogdan.a.marinescu@intel.com> To: openembedded-core@lists.openembedded.org From: Khem Raj Otherwise it assumes / as sysroot on build host and starts searching for directories in there. Signed-off-by: Khem Raj --- -- cgit v0.9.0.2-39-g756e 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++/"