conf/bitbake.conf:
authorHolger Freyther <zecke@selfish.org>
Tue, 16 May 2006 21:40:52 +0000 (21:40 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Tue, 16 May 2006 21:40:52 +0000 (21:40 +0000)
    Use -isystem instead of -I for the staging incdir.
    This will make the staging directory to be the
    last one in the include chain, this should make all
    'local' includes be handled first and only then we will
    fall back to the staging directory.
    nice option...

conf/bitbake.conf

index 2043a50..bcff586 100644 (file)
@@ -239,9 +239,9 @@ EXTRA_OEMAKE = "-e MAKEFLAGS="
 # Build flags and options.
 ##################################################################
 
-export BUILD_CPPFLAGS = "-I${STAGING_DIR}/${BUILD_SYS}/include"
+export BUILD_CPPFLAGS = "-isystem${STAGING_DIR}/${BUILD_SYS}/include"
 export CPPFLAGS = "${TARGET_CPPFLAGS}"
-export TARGET_CPPFLAGS = "-I${STAGING_DIR}/${TARGET_SYS}/include"
+export TARGET_CPPFLAGS = "-isystem${STAGING_DIR}/${TARGET_SYS}/include"
 
 export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}"
 export CFLAGS = "${TARGET_CFLAGS}"