From f258d6e437a68bfd8a46f185cbeb17bfcccf940b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 31 Jul 2025 21:22:35 -0700 Subject: [PATCH] toolchain/clang-native: Set BUILD_LDFLAGS instead of LDFLAGS BUILD_LDFLAGS is used by other recipes to emit native LDFLAGS into their cmake toolchain files especially in QT layers. it will usually be inherited by recipes wanting clang provide BUILD_* variables so this is more appropriate than LDFLAGS to pass these options. Signed-off-by: Khem Raj Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/classes/toolchain/clang-native.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/toolchain/clang-native.bbclass b/meta/classes/toolchain/clang-native.bbclass index 4de491a1cb..006be9fadd 100644 --- a/meta/classes/toolchain/clang-native.bbclass +++ b/meta/classes/toolchain/clang-native.bbclass @@ -15,4 +15,4 @@ BUILD_READELF = "${BUILD_PREFIX}llvm-readelf" DEPENDS += "clang-native libcxx-native compiler-rt-native" -LDFLAGS += " --rtlib=libgcc --unwindlib=libgcc" +BUILD_LDFLAGS += " --rtlib=libgcc --unwindlib=libgcc" -- 2.47.2