[oe-commits] [openembedded-core] 11/18: crosssdk: Remove usage of host flags for cross-compilation

git at git.openembedded.org git at git.openembedded.org
Sat Nov 24 21:48:01 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch sumo
in repository openembedded-core.

commit 702917592ffca04fb1447fca60f6377ef96a57a0
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Oct 31 22:38:43 2018 +0000

    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 at linuxfoundation.org>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/classes/crosssdk.bbclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass
index ddb98d2..03b0c60 100644
--- a/meta/classes/crosssdk.bbclass
+++ b/meta/classes/crosssdk.bbclass
@@ -21,10 +21,10 @@ TARGET_PREFIX = "${SDK_PREFIX}"
 TARGET_CC_ARCH = "${SDK_CC_ARCH}"
 TARGET_LD_ARCH = "${SDK_LD_ARCH}"
 TARGET_AS_ARCH = "${SDK_AS_ARCH}"
-TARGET_CPPFLAGS = "${BUILD_CPPFLAGS}"
-TARGET_CFLAGS = "${BUILD_CFLAGS}"
-TARGET_CXXFLAGS = "${BUILD_CXXFLAGS}"
-TARGET_LDFLAGS = "${BUILD_LDFLAGS}"
+TARGET_CPPFLAGS = ""
+TARGET_CFLAGS = ""
+TARGET_CXXFLAGS = ""
+TARGET_LDFLAGS = ""
 TARGET_FPU = ""
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list