]> 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>
Tue, 6 Nov 2018 12:14:05 +0000 (12:14 +0000)
commit6e162e619b6f5173c073cd9bedbcadf205017e30
treee9cc486b710e7bbf7d00ab0e89391191575e9df2
parente3c7e1703499e6a5332d9ab8a941671ec8235c4f
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]

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