1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/rust/need-ssp_nonshared.patch
Timo Teräs 943315f4c5 community/rust: add libssp_nonshared to link spec
On musl libssp_nonshared needs to be explicitly added to provide
__stack_chk_fail_local (while rust does not use this symbol linking
in gcc built code can require it).
2020-02-08 19:11:54 +02:00

11 lines
518 B
Diff

--- rustc-1.41.0-src/src/libstd/build.rs.orig 2020-02-08 17:05:40.390387794 +0200
+++ rustc-1.41.0-src/src/libstd/build.rs 2020-02-08 17:09:46.844426452 +0200
@@ -11,6 +11,8 @@
println!("cargo:rustc-link-lib=dl");
println!("cargo:rustc-link-lib=rt");
println!("cargo:rustc-link-lib=pthread");
+ } else {
+ println!("cargo:rustc-link-lib=ssp_nonshared");
}
} else if target.contains("freebsd") {
println!("cargo:rustc-link-lib=execinfo");