]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
rust-common: override RUST_LIBC for crosssdk
authorChristian Eggers <ceggers@arri.de>
Fri, 25 Mar 2022 06:52:23 +0000 (07:52 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Mar 2022 09:33:28 +0000 (09:33 +0000)
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>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes/rust-common.bbclass

index 65ad677499cbc36976110126e05db47c133794f4..02a538258af662ec75eeed082db8462cb4c4f999 100644 (file)
@@ -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):