]> code.ossystems Code Review - openembedded-core.git/commit
gcc: ensure target gcc headers can be included
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 22 Jan 2015 14:50:00 +0000 (14:50 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Feb 2015 17:39:50 +0000 (17:39 +0000)
commitce3f7777fd1d057f399f3f5df8df620e7eaf6cc2
tree42238ffbe82d523b6d6344aa942745b152c40253
parent7e3f4ddd001f9c50a49d8ba5ab548af311e6b51f
gcc: ensure target gcc headers can be included

There are a few headers installed as part of gcc-runtime (omp.h,
ssp/*.h). Being installed from a recipe built for the target
architecture, these are within the target sysroot and not
cross/nativesdk; thus they weren't able to be found by gcc with the
existing search paths. Add support for picking up these headers
under the sysroot supplied on the gcc command line in order to
resolve this.

Thanks to Richard Purdie for giving me a number of pointers during
fixing this issue.

Fixes [YOCTO #7141].

(From OE-Core rev: 5c87bb9ac2b35b3f8cf2b7d3e4507e7013115162)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/gcc/gcc-4.8.inc
meta/recipes-devtools/gcc/gcc-4.8/target-gcc-includedir.patch [new file with mode: 0644]
meta/recipes-devtools/gcc/gcc-4.9.inc
meta/recipes-devtools/gcc/gcc-4.9/target-gcc-includedir.patch [new file with mode: 0644]