diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-01 08:01:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-01 23:11:17 +0100 |
commit | acde166f5b865c9d11ca6ec0457fb5cb1f1793f2 (patch) | |
tree | 0e409a34b7be6ff89692a0c8ff844e26c4600345 /meta/recipes-devtools/gcc | |
parent | 5dc490cdb30e687a5f72da7d4dfac825049c262d (diff) | |
download | poky-acde166f5b865c9d11ca6ec0457fb5cb1f1793f2.tar.gz |
gcc-configure-target: Set native-system-header-dir for target gcc
Without this set, in the case host=target (which it does for on-target
gcc), the native header directory is set to the target sysroot with
no prefix. This means it would look for sdt.h on the build system
instead of in the target headers and this can lead to build failures
and is host contamination of the build.
The correct fix is to explicitly set the native header directory to
the correct location and then the headers get detected correctly.
(From OE-Core rev: 404d2d490fc347203e89d274530c17fb5f0aa20f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-target.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-target.inc b/meta/recipes-devtools/gcc/gcc-configure-target.inc index b2f91b7d79..f41301f2fe 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-target.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-target.inc | |||
@@ -3,4 +3,5 @@ require gcc-configure-common.inc | |||
3 | EXTRA_OECONF_PATHS = " \ | 3 | EXTRA_OECONF_PATHS = " \ |
4 | --with-sysroot=/ \ | 4 | --with-sysroot=/ \ |
5 | --with-build-sysroot=${STAGING_DIR_TARGET} \ | 5 | --with-build-sysroot=${STAGING_DIR_TARGET} \ |
6 | --with-native-system-header-dir=${STAGING_DIR_TARGET}${target_includedir} \ | ||
6 | --with-gxx-include-dir=${includedir}/c++/" | 7 | --with-gxx-include-dir=${includedir}/c++/" |