summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorChristian Eggers <ceggers@arri.de>2022-03-25 07:52:23 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-26 09:33:32 +0000
commitccef909c5614595ad42ddeb8dab53d1e40356bae (patch)
tree70053b2aa6a989ebcf174ba5af1afc7ffa40b9cd /meta/classes
parent40d6b6baaec1fdf45212f729bd5301c06a0955ec (diff)
downloadpoky-ccef909c5614595ad42ddeb8dab53d1e40356bae.tar.gz
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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rust-common.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass
index 65ad677499..02a538258a 100644
--- a/meta/classes/rust-common.bbclass
+++ b/meta/classes/rust-common.bbclass
@@ -16,6 +16,7 @@ RUST_PANIC_STRATEGY ?= "unwind"
16# Native builds are not effected by TCLIBC. Without this, rust-native 16# Native builds are not effected by TCLIBC. Without this, rust-native
17# thinks it's "target" (i.e. x86_64-linux) is a musl target. 17# thinks it's "target" (i.e. x86_64-linux) is a musl target.
18RUST_LIBC = "${TCLIBC}" 18RUST_LIBC = "${TCLIBC}"
19RUST_LIBC:class-crosssdk = "glibc"
19RUST_LIBC:class-native = "glibc" 20RUST_LIBC:class-native = "glibc"
20 21
21def determine_libc(d, thing): 22def determine_libc(d, thing):