[OE-core] [PATCH 1/1] gcc: make compiler to search build directory before standard system include directories

rongqing.li at windriver.com rongqing.li at windriver.com
Wed Feb 20 07:07:52 UTC 2013


If libunwind is compiled firstly, unwind.h from libunwind
is installed into sysroot, compiling gcc will fail since
it use wrong unwind.h, it should always use unwind.h under
build directory.

Signed-off-by: Roy.Li <rongqing.li at windriver.com>
---
 meta/recipes-devtools/gcc/gcc-4.7.inc |    2 +-
 meta/recipes-devtools/gcc/gcc_4.7.bb  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
index 8735e48..d353bad 100644
--- a/meta/recipes-devtools/gcc/gcc-4.7.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r18"
+PR = "r19"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.7.1
diff --git a/meta/recipes-devtools/gcc/gcc_4.7.bb b/meta/recipes-devtools/gcc/gcc_4.7.bb
index 9954375..ff924e8 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/"
-- 
1.7.10.4





More information about the Openembedded-core mailing list