]> code.ossystems Code Review - openembedded-core.git/commit
crosssdk: Remove usage of host flags for cross-compilation
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Oct 2018 22:38:43 +0000 (22:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Nov 2018 21:45:48 +0000 (21:45 +0000)
commit702917592ffca04fb1447fca60f6377ef96a57a0
tree42e4cc20f7f888d33094557f3db8a68a9063e1b1
parente1c9d4d57aa3ebe9b733241e3f8139551a77d7cb
crosssdk: Remove usage of host flags for cross-compilation

Similarlly to OE-Core rev 4b936cde58ca0a6f34092ce82640a02859110411 for
cross.sdk, BUILD_* flags can't be used as TARGET_* flags

gcc-crosssdk 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-crosssdk builds.

[YOCTO #11874]

(From OE-Core rev: 6e162e619b6f5173c073cd9bedbcadf205017e30)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/crosssdk.bbclass