diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-05-06 10:51:36 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-08 12:15:17 +0100 |
commit | fd32e1e5e629b616e8300d9f08d7d9c178a8d177 (patch) | |
tree | fb18f3ea648a5f07dbee9f2e38a5078a8dfb0083 /meta/recipes-devtools/gcc/gcc-target.inc | |
parent | 1544d387162f9581622e1a05a334ba6bae7a6cdc (diff) | |
download | poky-fd32e1e5e629b616e8300d9f08d7d9c178a8d177.tar.gz |
gcc-target: Do not set --with-sysroot and gxx-include-dir paths
These options are not needed on target infact since the defaults would
be good enough for compiler to find the relevant headers and libraries
from compiler runtime
with gcc9 it starts to strip the sysroot from gxx-include-dir which
means it tries to look for gxx headers in localdir
ignoring nonexistent directory "usr/include/c++/9.0.1"
ignoring nonexistent directory "usr/include/c++/9.0.1/arm-yoe-linux-gnueabi"
ignoring nonexistent directory "usr/include/c++/9.0.1/backward"
instead of sysroot
Removing these options make it behave normal
(From OE-Core rev: 2996640fb3577a3c28a22f1e25eae15e8e3d46b1)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-target.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-target.inc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index 6270059644..bdc6ff658f 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc | |||
@@ -2,9 +2,7 @@ GCCMULTILIB = "--enable-multilib" | |||
2 | require gcc-configure-common.inc | 2 | require gcc-configure-common.inc |
3 | 3 | ||
4 | EXTRA_OECONF_PATHS = "\ | 4 | EXTRA_OECONF_PATHS = "\ |
5 | --with-sysroot=/ \ | ||
6 | --with-build-sysroot=${STAGING_DIR_TARGET} \ | 5 | --with-build-sysroot=${STAGING_DIR_TARGET} \ |
7 | --with-gxx-include-dir=${includedir}/c++/${BINV} \ | ||
8 | " | 6 | " |
9 | 7 | ||
10 | EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" | 8 | EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" |