summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust-source.inc
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2022-12-28 15:23:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-28 23:53:23 +0000
commit3c88cf98361a8f1c6f5183cc8887cccfad9d08ba (patch)
tree3b68c05aab351cf4bd67ba4fc3eb7a138217e7e8 /meta/recipes-devtools/rust/rust-source.inc
parenta09bcc7db13a7308f523d985332e96461b8feeec (diff)
downloadopenembedded-core-contrib-3c88cf98361a8f1c6f5183cc8887cccfad9d08ba.tar.gz
rust: Move musl-x86 fix for `__stack_chk_fail_local` to rust-source
Any consumer of rust-source (potentially) needs this, so move to rust-source.inc Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust/rust-source.inc')
-rw-r--r--meta/recipes-devtools/rust/rust-source.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc
index 91a6c5a942..b63e18ac95 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -11,3 +11,8 @@ RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html"
UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src"
+
+# see recipes-devtools/gcc/gcc/0018-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch
+# we need to link with ssp_nonshared on musl to avoid "undefined reference to `__stack_chk_fail_local'"
+# when building MACHINE=qemux86 for musl
+WRAPPER_TARGET_EXTRALD:libc-musl = "-lssp_nonshared"