]> code.ossystems Code Review - openembedded-core.git/commit
gcc-configure-target: Set native-system-header-dir for target gcc
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Aug 2012 08:01:28 +0000 (08:01 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Aug 2012 22:11:09 +0000 (23:11 +0100)
commit404d2d490fc347203e89d274530c17fb5f0aa20f
tree9df2aa7ec729b9299dcd2ea316bb26c1b48ded34
parentaf274b1b266b5aa661823bd702eacc62cc3aefff
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-configure-target.inc