]> 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, 28 Jan 2015 21:22:21 +0000 (21:22 +0000)
commit5c87bb9ac2b35b3f8cf2b7d3e4507e7013115162
treeaa3b316e8a15a65a9d584e1d9ffe752cfe349acb
parenta6ee74222b43d0bb7fe9ef0072ede78f82a5e446
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].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.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]