From: Khem Raj Date: Fri, 18 Jul 2025 05:43:03 +0000 (-0700) Subject: toolchain-scripts: Make -mmusl apply only for gcc toolchains X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82484ccb3eb1a7b5562131881b5ed6545144e5eb;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toolchain-scripts: Make -mmusl apply only for gcc toolchains This option is not respected by clang Signed-off-by: Khem Raj Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/toolchain-scripts.bbclass b/meta/classes-recipe/toolchain-scripts.bbclass index 3053cd0f1f..5874a48af8 100644 --- a/meta/classes-recipe/toolchain-scripts.bbclass +++ b/meta/classes-recipe/toolchain-scripts.bbclass @@ -9,7 +9,7 @@ inherit toolchain-scripts-base siteinfo kernel-arch meson-routines # We want to be able to change the value of MULTIMACH_TARGET_SYS, because it # doesn't always match our expectations... but we default to the stock value REAL_MULTIMACH_TARGET_SYS ?= "${MULTIMACH_TARGET_SYS}" -TARGET_CC_ARCH:append:libc-musl = " -mmusl" +TARGET_CC_ARCH:append:toolchain-gcc:libc-musl = " -mmusl" # default debug prefix map isn't valid in the SDK DEBUG_PREFIX_MAP = ""