[OE-core] [PATCH v2] gcc: add build directory to include directories

Khem Raj raj.khem at gmail.com
Tue Jun 11 02:21:34 UTC 2013


what happens if you use --disable-libunwind-exceptions

On May 31, 2013, at 8:55 AM, Mark Hatle <mark.hatle at windriver.com> wrote:

> From: "Roy.Li" <rongqing.li at windriver.com>
> 
> Add build directory to include directories by -I${B}/include which will
> be searched before standard system include directories.
> 
> Both libunwind and gcc supply unwind.h, once gcc use libunwind's unwind.h,
> the compiling will fail.
> 
> This patch is generally not applicable to the upstream as they do not
> use libunwind.
> 
> Signed-off-by: Roy.Li <rongqing.li at windriver.com>
> Signed-off-by: Jeff Polk <jeff.polk at windriver.com>
> Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
> ---
> meta/recipes-devtools/gcc/gcc_4.7.bb | 2 +-
> meta/recipes-devtools/gcc/gcc_4.8.bb | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-devtools/gcc/gcc_4.7.bb b/meta/recipes-devtools/gcc/gcc_4.7.bb
> index 9954375..f68c67a 100644
> --- a/meta/recipes-devtools/gcc/gcc_4.7.bb
> +++ b/meta/recipes-devtools/gcc/gcc_4.7.bb
> @@ -2,4 +2,4 @@ require recipes-devtools/gcc/gcc-${PV}.inc
> require gcc-configure-target.inc
> require gcc-package-target.inc
> 
> -ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_INCDIR}"
> +ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_INCDIR} -I${B}/gcc/include/ "
> diff --git a/meta/recipes-devtools/gcc/gcc_4.8.bb b/meta/recipes-devtools/gcc/gcc_4.8.bb
> index 9954375..f68c67a 100644
> --- a/meta/recipes-devtools/gcc/gcc_4.8.bb
> +++ b/meta/recipes-devtools/gcc/gcc_4.8.bb
> @@ -2,4 +2,4 @@ require recipes-devtools/gcc/gcc-${PV}.inc
> require gcc-configure-target.inc
> require gcc-package-target.inc
> 
> -ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_INCDIR}"
> +ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_INCDIR} -I${B}/gcc/include/ "
> -- 
> 1.8.3.rc1.25.g423ecb0
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core




More information about the Openembedded-core mailing list