summaryrefslogtreecommitdiff
path: root/skip/rust/need-ssp_nonshared.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-12-19 23:07:05 +0000
committerdavidovski <david@davidovski.xyz>2022-12-19 23:07:05 +0000
commit05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (patch)
tree0b058ac267139f2a0525dec42b307664363e5b11 /skip/rust/need-ssp_nonshared.patch
parent4c61af227b0fb3e028c877dc1c2e0b6513960762 (diff)
Making things work
Diffstat (limited to 'skip/rust/need-ssp_nonshared.patch')
-rw-r--r--skip/rust/need-ssp_nonshared.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/skip/rust/need-ssp_nonshared.patch b/skip/rust/need-ssp_nonshared.patch
new file mode 100644
index 0000000..f1adf20
--- /dev/null
+++ b/skip/rust/need-ssp_nonshared.patch
@@ -0,0 +1,13 @@
+--- 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,9 @@
+ #[link(name = "log")]
+ #[link(name = "gcc")]
+ extern "C" {}
++ } else if #[cfg(all(target_os = "linux", target_env = "musl"))] {
++ #[link(name = "ssp_nonshared")]
++ extern "C" {}
+ } else if #[cfg(target_os = "freebsd")] {
+ #[link(name = "execinfo")]
+ #[link(name = "pthread")]
+