diff options
author | Kevin Tian <kevin.tian@intel.com> | 2010-12-30 12:36:50 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-01-02 01:25:40 -0800 |
commit | f13cb20ed19c41b9ff85ef1c9ec0883a21d1d5bf (patch) | |
tree | 72357a65b1f773db850cd1f47e049996d35b5744 /meta/recipes-devtools/gcc/gcc-configure-cross.inc | |
parent | 2e3cdcb067f9c90f18a2b27d99caa63aa23c488f (diff) | |
download | openembedded-core-f13cb20ed19c41b9ff85ef1c9ec0883a21d1d5bf.tar.gz openembedded-core-f13cb20ed19c41b9ff85ef1c9ec0883a21d1d5bf.tar.bz2 openembedded-core-f13cb20ed19c41b9ff85ef1c9ec0883a21d1d5bf.zip |
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>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-configure-cross.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-cross.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-cross.inc b/meta/recipes-devtools/gcc/gcc-configure-cross.inc index 3da92e24a1..04a8685358 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-cross.inc @@ -5,7 +5,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' EXTRA_OECONF += " --enable-poison-system-directories " EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_exec_prefix} \ - --with-gxx-include-dir=${STAGING_DIR_TARGET}/${target_includedir}/c++ \ + --with-gxx-include-dir=${target_includedir}/c++ \ --with-sysroot=${STAGING_DIR_TARGET} \ --with-build-sysroot=${STAGING_DIR_TARGET}" |