Patchwork gcc-configure-common: Use build time sysroot for target gcc

login
register
mail settings
Submitter Bogdan Marinescu
Date June 13, 2012, 8:20 a.m.
Message ID <1339575610-21995-1-git-send-email-bogdan.a.marinescu@intel.com>
Download mbox | patch
Permalink /patch/29777/
State New
Headers show

Comments

Bogdan Marinescu - June 13, 2012, 8:20 a.m.
From: Khem Raj <raj.khem@gmail.com>

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

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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
--
cgit v0.9.0.2-39-g756e
Bogdan Marinescu - June 13, 2012, 8:23 a.m.
Apologies for the double "From:" line, will resend.

On Wed, Jun 13, 2012 at 11:20 AM, Bogdan Marinescu
<bogdan.a.marinescu@intel.com> wrote:
> From: Khem Raj <raj.khem@gmail.com>
>
> From: Khem Raj <raj.khem@gmail.com>
>
> Otherwise it assumes / as sysroot on build host and starts
> searching for directories in there.
>
> Signed-off-by: Khem Raj <raj.khem@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
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Patch

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++/"