mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 05:02:21 +02:00
rust: Fix musl builds
Musl targets need a sysroot set to find the musl static libraries. Set this appropriately in musl builds. (From OE-Core rev: 1c5ab57ddda393631ce2da97ef5a876a2020d51f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -83,6 +83,8 @@ python do_configure() {
|
||||
|
||||
config.set(host_section, "cxx", e(d.expand("${RUST_TARGET_CXX}")))
|
||||
config.set(host_section, "cc", e(d.expand("${RUST_TARGET_CC}")))
|
||||
if "musl" in host_section:
|
||||
config.set(host_section, "musl-root", e(d.expand("${STAGING_DIR_HOST}${exec_prefix}")))
|
||||
|
||||
# If we don't do this rust-native will compile it's own llvm for BUILD.
|
||||
# [target.${BUILD_ARCH}-unknown-linux-gnu]
|
||||
|
||||
Reference in New Issue
Block a user