From: Christian Eggers Date: Fri, 25 Mar 2022 06:52:23 +0000 (+0100) Subject: rust-common: override RUST_LIBC for crosssdk X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4622 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67b4e0fdb13c81ab7e79109b6366fd7705b253ba;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- 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):