summaryrefslogtreecommitdiff
path: root/repo/devel/rustc/patches/need-ssp_nonshared.patch
blob: f1adf20421eebf5713f5d4be7e1808c262421a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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")]