]> code.ossystems Code Review - openembedded-core.git/commit
cross.bbclass: Remove usage of host flags for cross-compilation
authorNikolay Merinov <n.merinov@inango-systems.com>
Fri, 6 Oct 2017 19:00:39 +0000 (00:00 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Oct 2017 22:52:02 +0000 (23:52 +0100)
commit4b936cde58ca0a6f34092ce82640a02859110411
treef88e8eed203aca4619f394d6ada6279669aa969a
parent1c46e201ef486395ec047f29af272f8c3dfd9611
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.

Signed-off-by: Nikolay Merinov <n.merinov@inango-systems.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/cross.bbclass