diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-05 14:01:22 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-08 15:44:20 +0100 |
| commit | e1dcfcdbfa65c8f5316a55abd1cb5e6762b609e9 (patch) | |
| tree | 75a3608b60c17128dc5d9fc92a9846e65d9a8c02 /meta | |
| parent | 16b4ac3f558fda6e1c3bb51bef0803836b96cf62 (diff) | |
| download | poky-e1dcfcdbfa65c8f5316a55abd1cb5e6762b609e9.tar.gz | |
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>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-devtools/rust/rust.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust.inc b/meta/recipes-devtools/rust/rust.inc index 1c8fe225fd..d0f7467a88 100644 --- a/meta/recipes-devtools/rust/rust.inc +++ b/meta/recipes-devtools/rust/rust.inc | |||
| @@ -83,6 +83,8 @@ python do_configure() { | |||
| 83 | 83 | ||
| 84 | config.set(host_section, "cxx", e(d.expand("${RUST_TARGET_CXX}"))) | 84 | config.set(host_section, "cxx", e(d.expand("${RUST_TARGET_CXX}"))) |
| 85 | config.set(host_section, "cc", e(d.expand("${RUST_TARGET_CC}"))) | 85 | config.set(host_section, "cc", e(d.expand("${RUST_TARGET_CC}"))) |
| 86 | if "musl" in host_section: | ||
| 87 | config.set(host_section, "musl-root", e(d.expand("${STAGING_DIR_HOST}${exec_prefix}"))) | ||
| 86 | 88 | ||
| 87 | # If we don't do this rust-native will compile it's own llvm for BUILD. | 89 | # If we don't do this rust-native will compile it's own llvm for BUILD. |
| 88 | # [target.${BUILD_ARCH}-unknown-linux-gnu] | 90 | # [target.${BUILD_ARCH}-unknown-linux-gnu] |
