From 18037e0158dd8956b4851f881acad06c42140a60 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 1 Apr 2016 22:45:41 +0000 Subject: Remove -mmusl and -muclibc These options were introduced in OE-Core to support multi libc SDKs and added with Author: Richard Purdie Date: Sat Jul 25 14:48:21 2015 +0100 toolchain-scripts: For non-glibc, pass compiler options to ensure the correct libc selection gcc-cross-canadian- is only built once. It needs to target all the different libcs, not just the currently selected one. This change ensures that if another libc is used, the compiler correctly selects the right one. [YOCTO #8025] (From OE-Core rev: da2e92e256054b137a1646fdad1fe1a47ba3215a) Clang however acts based on crosscompiler name and does not have option to controlled multi libc scene Signed-off-by: Khem Raj --- recipes-core/meta/meta-environment.bbappend | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes-core/meta/meta-environment.bbappend b/recipes-core/meta/meta-environment.bbappend index 86accd2..3149492 100644 --- a/recipes-core/meta/meta-environment.bbappend +++ b/recipes-core/meta/meta-environment.bbappend @@ -1,5 +1,8 @@ export TARGET_CLANGCC_ARCH = "${TARGET_CC_ARCH}" TARGET_CLANGCC_ARCH_remove = "-mthumb-interwork" +TARGET_CLANGCC_ARCH_remove = "-mmusl" +TARGET_CLANGCC_ARCH_remove = "-muclibc" + create_sdk_files_append() { script=${SDK_OUTPUT}/${SDKPATH}/environment-setup-${REAL_MULTIMACH_TARGET_SYS} echo 'export CLANGCC="${TARGET_PREFIX}clang ${TARGET_CLANGCC_ARCH} --sysroot=$SDKTARGETSYSROOT"' >> $script -- cgit v1.2.3-54-g00ecf