24 lines
999 B
Diff
24 lines
999 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");
|
|
--- rustc-1.44.0-src/src/libunwind/build.rs
|
|
+++ rustc-1.44.0-src/src/libunwind/build.rs
|
|
@@ -12,6 +12,9 @@ fn main() {
|
|
} else if target.contains("linux") {
|
|
if !target.contains("android") {
|
|
println!("cargo:rustc-link-lib=gcc_s");
|
|
+ if target.contains("musl") {
|
|
+ println!("cargo:rustc-link-lib=ssp_nonshared");
|
|
+ }
|
|
}
|
|
} else if target.contains("freebsd") {
|
|
println!("cargo:rustc-link-lib=gcc_s");
|