[oe-commits] Roy.Li : gcc: add build directory to include directories

git at git.openembedded.org git at git.openembedded.org
Fri Aug 16 10:12:01 UTC 2013


Module: openembedded-core.git
Branch: dylan
Commit: f511ecd029d35964f345e38c6f4fc4f8c78c94d8
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=f511ecd029d35964f345e38c6f4fc4f8c78c94d8

Author: Roy.Li <rongqing.li at windriver.com>
Date:   Fri May 31 10:55:46 2013 -0500

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 master rev: 2b47bce78536a800205b2385bba69038351545e5)

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>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/gcc/gcc_4.7.bb |    2 +-
 1 files changed, 1 insertions(+), 1 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/ "



More information about the Openembedded-commits mailing list