diff options
author | Nikolay Merinov <n.merinov@inango-systems.com> | 2017-10-07 00:00:39 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-10-16 23:52:43 +0100 |
commit | e824e093757c3de9c7c6194ff2ebab866dcfca2f (patch) | |
tree | a227d244f3bd66543cfb604f272c2a39b362b32a /meta | |
parent | 908e338110b7e49dbc05dcd2318faf2bcac79156 (diff) | |
download | poky-e824e093757c3de9c7c6194ff2ebab866dcfca2f.tar.gz |
cross.bbclass: Remove usage of host flags for cross-compilation
BUILD_* flags can't be used as TARGET_* flags even for "cross" packages.
gcc-cross buils leaks config.log's through "gcc-stashed-builddir" and
TARGET_* flags to libgcc cross-build through "gcc/libgcc.mvars" file
on "gcc-stashed-builddir". This means that if BUILD_CFLAGS contains
host-specific flags like "-isystem/usr/include" libgcc build will
fail "do_qa_configure" and "do_package_qa" checks.
Remove host-related flags from TARGET_* flags for gcc-cross build.
(From OE-Core rev: 4b936cde58ca0a6f34092ce82640a02859110411)
Signed-off-by: Nikolay Merinov <n.merinov@inango-systems.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/cross.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index 4887317a9a..d217717e69 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass | |||
@@ -28,10 +28,10 @@ MULTIMACH_TARGET_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}" | |||
28 | export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig" | 28 | export PKG_CONFIG_DIR = "${exec_prefix}/lib/pkgconfig" |
29 | export PKG_CONFIG_SYSROOT_DIR = "" | 29 | export PKG_CONFIG_SYSROOT_DIR = "" |
30 | 30 | ||
31 | TARGET_CPPFLAGS = "${BUILD_CPPFLAGS}" | 31 | TARGET_CPPFLAGS = "" |
32 | TARGET_CFLAGS = "${BUILD_CFLAGS}" | 32 | TARGET_CFLAGS = "" |
33 | TARGET_CXXFLAGS = "${BUILD_CXXFLAGS}" | 33 | TARGET_CXXFLAGS = "" |
34 | TARGET_LDFLAGS = "${BUILD_LDFLAGS}" | 34 | TARGET_LDFLAGS = "" |
35 | 35 | ||
36 | CPPFLAGS = "${BUILD_CPPFLAGS}" | 36 | CPPFLAGS = "${BUILD_CPPFLAGS}" |
37 | CFLAGS = "${BUILD_CFLAGS}" | 37 | CFLAGS = "${BUILD_CFLAGS}" |