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.

(From OE-Core rev: 67b4e0fdb13c81ab7e79109b6366fd7705b253ba)

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Christian Eggers
2022-03-25 07:52:23 +01:00
committed by Richard Purdie
parent 40d6b6baae
commit ccef909c56

View 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):