From d293a648074d2ca6aee97da5caf0974846bbd422 Mon Sep 17 00:00:00 2001 From: "Roy.Li" Date: Fri, 31 May 2013 10:55:46 -0500 Subject: [PATCH] gcc: add build directory to include directories 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. (From OE-Core rev: 2b47bce78536a800205b2385bba69038351545e5) Signed-off-by: Roy.Li Signed-off-by: Jeff Polk Signed-off-by: Mark Hatle Signed-off-by: Richard Purdie --- 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/ " -- 2.7.4