1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 09:45:12 +03:00
aports/community/rust/need-ssp_nonshared.patch
psykose f5b4a08b4b community/rust: complexify linkifdefs
rust link statements don't make sense
should fix x86 stack_chk
2023-01-17 18:06:13 +01:00

14 lines
627 B
Diff

--- a/library/std/src/sys/unix/mod.rs.orig 2021-02-11 18:34:14.479832268 +0100
+++ b/library/std/src/sys/unix/mod.rs 2021-02-11 18:38:28.078987749 +0100
@@ -243,6 +243,10 @@
#[link(name = "log")]
#[link(name = "gcc")]
extern "C" {}
+ } else if #[cfg(all(target_os = "linux", target_env = "musl"))] {
+ #[link(name = "ssp_nonshared", kind = "static", cfg(target_feature = "crt-static"))]
+ #[link(name = "ssp_nonshared", cfg(not(target_feature = "crt-static")))]
+ extern "C" {}
} else if #[cfg(target_os = "freebsd")] {
#[link(name = "execinfo")]
#[link(name = "pthread")]