]> code.ossystems Code Review - openembedded-core.git/commit
gcc-4.5.1: make c++ include path relative to "--sysroot"
authorKevin Tian <kevin.tian@intel.com>
Thu, 30 Dec 2010 04:36:50 +0000 (12:36 +0800)
committerSaul Wold <sgw@linux.intel.com>
Sun, 2 Jan 2011 09:25:40 +0000 (01:25 -0800)
commitf13cb20ed19c41b9ff85ef1c9ec0883a21d1d5bf
tree72357a65b1f773db850cd1f47e049996d35b5744
parent2e3cdcb067f9c90f18a2b27d99caa63aa23c488f
gcc-4.5.1: make c++ include path relative to "--sysroot"

So far c++ include path is not relative to "--sysroot", which brings
trouble if we want to use the toolchain in a new environment where
the original build directory generating that toolchain is not
available. It's firstly exposed in multiple SDK sysroots support, and
then in the case when sstate packages are used, where c++ standard
headers are missing because gcc tries to search original build dir.

This patch makes c++ include path now relative to "--sysroot", and
then once "--sysroot" is assigned correctly in new environment, c++
include paths can be searched as expected.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
13 files changed:
meta/recipes-devtools/gcc/gcc-4.5.1.inc
meta/recipes-devtools/gcc/gcc-4.5.1/GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch [new file with mode: 0644]
meta/recipes-devtools/gcc/gcc-configure-cross.inc
meta/recipes-devtools/gcc/gcc-configure-sdk.inc
meta/recipes-devtools/gcc/gcc-cross-canadian_4.5.1.bb
meta/recipes-devtools/gcc/gcc-cross-initial_4.5.1.bb
meta/recipes-devtools/gcc/gcc-cross-intermediate_4.5.1.bb
meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb
meta/recipes-devtools/gcc/gcc-crosssdk-initial_4.5.1.bb
meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.5.1.bb
meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb
meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb
meta/recipes-devtools/gcc/gcc_4.5.1.bb