]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
rust: Move musl-x86 fix for `__stack_chk_fail_local` to rust-source
authorAlex Kiernan <alex.kiernan@gmail.com>
Wed, 28 Dec 2022 15:23:28 +0000 (15:23 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Dec 2022 23:53:23 +0000 (23:53 +0000)
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>
meta/recipes-devtools/rust/rust-source.inc
meta/recipes-devtools/rust/rust_1.66.0.bb

index 91a6c5a942ae765608c23f4aceb8478e38148a47..b63e18ac95d2c092c9d9132a97199a8d40aa6aee 100644 (file)
@@ -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"
index 5192ec2ee11abbe177d1c6bba539c2a4366229d9..f1ec769aef48d44a8d1cf196cfb52b8eaf6b2916 100644 (file)
@@ -292,11 +292,6 @@ rust_do_install:class-target() {
     rm ${D}${libdir}/rustlib/manifest*
 }
 
-# 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"
-
 RUSTLIB_DEP:class-nativesdk = ""
 
 # musl builds include libunwind.a