mirror of
git://git.yoctoproject.org/poky
synced 2026-08-11 16:35:07 +00: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:
parent
16b4ac3f55
commit
e1dcfcdbfa
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user