diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-02-08 19:11:54 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-02-08 19:11:54 +0200 |
commit | 943315f4c5b6a4397b5ab8cd14e79f60a5e25203 (patch) | |
tree | 6f60c8208e6ddd4a9872f23ab7d8af6482062238 /community/rust/need-ssp_nonshared.patch | |
parent | 56208ae329b8980c22ca8f509dc36e77dce57ac0 (diff) | |
download | aports-943315f4c5b6a4397b5ab8cd14e79f60a5e25203.tar.bz2 aports-943315f4c5b6a4397b5ab8cd14e79f60a5e25203.tar.xz |
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).
Diffstat (limited to 'community/rust/need-ssp_nonshared.patch')
-rw-r--r-- | community/rust/need-ssp_nonshared.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/community/rust/need-ssp_nonshared.patch b/community/rust/need-ssp_nonshared.patch new file mode 100644 index 0000000000..2a852400ab --- /dev/null +++ b/community/rust/need-ssp_nonshared.patch @@ -0,0 +1,11 @@ +--- 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"); |