From 67b4e0fdb13c81ab7e79109b6366fd7705b253ba Mon Sep 17 00:00:00 2001 From: Christian Eggers Date: Fri, 25 Mar 2022 07:52:23 +0100 Subject: [PATCH] rust-common: override RUST_LIBC for crosssdk For nativesdk/crosssdk, always glibc is used. Fixes build of rust-crosssdk if TCLIBC is set to musl. Signed-off-by: Christian Eggers Signed-off-by: Alexandre Belloni --- meta/classes/rust-common.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass index 65ad677499c..02a538258af 100644 --- a/meta/classes/rust-common.bbclass +++ b/meta/classes/rust-common.bbclass @@ -16,6 +16,7 @@ RUST_PANIC_STRATEGY ?= "unwind" # Native builds are not effected by TCLIBC. Without this, rust-native # thinks it's "target" (i.e. x86_64-linux) is a musl target. RUST_LIBC = "${TCLIBC}" +RUST_LIBC:class-crosssdk = "glibc" RUST_LIBC:class-native = "glibc" def determine_libc(d, thing): -- 2.47.3