[1/4] rust-common: override RUST_LIBC for crosssdk

Message ID 20220325065226.14833-1-ceggers@arri.de
State Accepted, archived
Commit 67b4e0fdb13c81ab7e79109b6366fd7705b253ba
Headers show
Series [1/4] rust-common: override RUST_LIBC for crosssdk | expand

Commit Message

Christian Eggers March 25, 2022, 6:52 a.m. UTC
For nativesdk/crosssdk, always glibc is used. Fixes build of
rust-crosssdk if TCLIBC is set to musl.

Signed-off-by: Christian Eggers <ceggers@arri.de>
---
 meta/classes/rust-common.bbclass | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass
index 65ad677499cb..02a538258af6 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):