mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 18:32:12 +02:00
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 (From OE-Core rev: 3c88cf98361a8f1c6f5183cc8887cccfad9d08ba) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
510ecb586f
commit
4323ddb8a1
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user