make c++ include path relative to --sysroot
cover make c++ include path relative to --sysroot
with this fix, now gcc installed from sstate packages can find c++ standard header files correctly in the new build directory, e.g when building libproxy. There's still one remaining issue in meta-toolchain part, that a complex c++ project compilation still fails being unable to find <algorithm>, if meta-toolchain is installed in a location different from the default assumption.
Having said that, this patch doesn't break normal usage w/o causing regression. I verified Sato build for qemuarm/qemuppc, and Lianhao helped verify qemumips and corresonding normal meta-toolchain usage. So it'd be good to get it merged earlier to remove one more road blocker for sstate.
Thanks to RP for suggesting the solution here.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: tk/cplusplus
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=tk/cplusplus
Thanks,
Kevin Tian <[email protected]>
---
Kevin Tian (1):
gcc-4.5.1: make c++ include path relative to "--sysroot"
meta/recipes-devtools/gcc/gcc-4.5.1.inc | 1 + .../GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch | 33 ++++++++++++++++++++ meta/recipes-devtools/gcc/gcc-configure-cross.inc | 2 +- meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 2 +- .../gcc/gcc-cross-canadian_4.5.1.bb | 2 +- .../gcc/gcc-cross-initial_4.5.1.bb | 2 +- .../gcc/gcc-cross-intermediate_4.5.1.bb | 2 +- meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb | 2 +- .../gcc/gcc-crosssdk-initial_4.5.1.bb | 2 +- .../gcc/gcc-crosssdk-intermediate_4.5.1.bb | 2 +- meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb | 2 +- meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb | 2 +- meta/recipes-devtools/gcc/gcc_4.5.1.bb | 2 +- 13 files changed, 45 insertions(+), 11 deletions(-) create mode 100644 meta/recipes-devtools/gcc/gcc-4.5.1/GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch
Quoted 39 lines · Kevin Tian
with this fix, now gcc installed from sstate packages can find c++ standard header files correctly in the new build directory, e.g when building libproxy. There's still one remaining issue in meta-toolchain part, that a complex c++ project compilation still fails being unable to find<algorithm>, if meta-toolchain is installed in a location different from the default assumption.
Having said that, this patch doesn't break normal usage w/o causing regression. I verified Sato build for qemuarm/qemuppc, and Lianhao helped verify qemumips and corresonding normal meta-toolchain usage. So it'd be good to get it merged earlier to remove one more road blocker for sstate.
Thanks to RP for suggesting the solution here.
Pull URL:
git://git.pokylinux.org/poky-contrib.git
Branch: tk/cplusplus
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=tk/cplusplusThanks,
Kevin Tian<[email protected]>
---Kevin Tian (1):
gcc-4.5.1: make c++ include path relative to "--sysroot"meta/recipes-devtools/gcc/gcc-4.5.1.inc | 1 + .../GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch | 33 ++++++++++++++++++++ meta/recipes-devtools/gcc/gcc-configure-cross.inc | 2 +- meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 2 +- .../gcc/gcc-cross-canadian_4.5.1.bb | 2 +- .../gcc/gcc-cross-initial_4.5.1.bb | 2 +- .../gcc/gcc-cross-intermediate_4.5.1.bb | 2 +- meta/recipes-devtools/gcc/gcc-cross_4.5.1.bb | 2 +- .../gcc/gcc-crosssdk-initial_4.5.1.bb | 2 +- .../gcc/gcc-crosssdk-intermediate_4.5.1.bb | 2 +- meta/recipes-devtools/gcc/gcc-crosssdk_4.5.1.bb | 2 +- meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb | 2 +- meta/recipes-devtools/gcc/gcc_4.5.1.bb | 2 +- 13 files changed, 45 insertions(+), 11 deletions(-)
Quoted 7 lines
create mode 100644
meta/recipes-devtools/gcc/gcc-4.5.1/GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Pulled into Master
Thanks
Sau!