diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-31 22:38:43 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-07 23:08:55 +0000 |
| commit | d21cf7ca124eac07f46534d12851ebdd7e8d3bcb (patch) | |
| tree | 9bcad3ad8b92a91a44c4130a0ad108c840883127 /meta/classes | |
| parent | e06de80a616ce2c78c6b416149710fcb45f6e986 (diff) | |
| download | poky-d21cf7ca124eac07f46534d12851ebdd7e8d3bcb.tar.gz | |
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>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/crosssdk.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass index ddb98d22bc..03b0c602c3 100644 --- a/meta/classes/crosssdk.bbclass +++ b/meta/classes/crosssdk.bbclass | |||
| @@ -21,10 +21,10 @@ TARGET_PREFIX = "${SDK_PREFIX}" | |||
| 21 | TARGET_CC_ARCH = "${SDK_CC_ARCH}" | 21 | TARGET_CC_ARCH = "${SDK_CC_ARCH}" |
| 22 | TARGET_LD_ARCH = "${SDK_LD_ARCH}" | 22 | TARGET_LD_ARCH = "${SDK_LD_ARCH}" |
| 23 | TARGET_AS_ARCH = "${SDK_AS_ARCH}" | 23 | TARGET_AS_ARCH = "${SDK_AS_ARCH}" |
| 24 | TARGET_CPPFLAGS = "${BUILD_CPPFLAGS}" | 24 | TARGET_CPPFLAGS = "" |
| 25 | TARGET_CFLAGS = "${BUILD_CFLAGS}" | 25 | TARGET_CFLAGS = "" |
| 26 | TARGET_CXXFLAGS = "${BUILD_CXXFLAGS}" | 26 | TARGET_CXXFLAGS = "" |
| 27 | TARGET_LDFLAGS = "${BUILD_LDFLAGS}" | 27 | TARGET_LDFLAGS = "" |
| 28 | TARGET_FPU = "" | 28 | TARGET_FPU = "" |
| 29 | 29 | ||
| 30 | 30 | ||
