Patchwork [1/1] gcc: make compiler to search build directory before standard system include directories

login
register
mail settings
Submitter rongqing.li@windriver.com
Date Feb. 20, 2013, 7:07 a.m.
Message ID <1361344072-31152-2-git-send-email-rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/44915/
State New
Headers show

Comments

rongqing.li@windriver.com - Feb. 20, 2013, 7:07 a.m.
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@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(-)

Patch

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