From 82484ccb3eb1a7b5562131881b5ed6545144e5eb Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 17 Jul 2025 22:43:03 -0700 Subject: [PATCH] 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 --- meta/classes-recipe/toolchain-scripts.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "" -- 2.47.2