From: Khem Raj Date: Fri, 1 Aug 2025 04:22:35 +0000 (-0700) Subject: toolchain/clang-native: Set BUILD_LDFLAGS instead of LDFLAGS X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f258d6e437a68bfd8a46f185cbeb17bfcccf940b;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git 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 --- 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"