libgcc_eh may depend on libpthread.
Make sure we link to the static libpthread, so that compiled Rust binaries do not depend on winpthread1.dll.
This commit is contained in:
parent
78c3a49044
commit
7c2fc62a47
@ -35,7 +35,8 @@ fn main() {
|
||||
} else if target.contains("dragonfly") {
|
||||
println!("cargo:rustc-link-lib=gcc_pic");
|
||||
} else if target.contains("windows-gnu") {
|
||||
println!("cargo:rustc-link-lib=gcc_eh");
|
||||
println!("cargo:rustc-link-lib=static-nobundle=gcc_eh");
|
||||
println!("cargo:rustc-link-lib=static-nobundle=pthread");
|
||||
} else if target.contains("fuchsia") {
|
||||
println!("cargo:rustc-link-lib=unwind");
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
#![feature(cfg_target_vendor)]
|
||||
#![feature(staged_api)]
|
||||
#![feature(unwind_attributes)]
|
||||
#![feature(static_nobundle)]
|
||||
|
||||
#![cfg_attr(not(target_env = "msvc"), feature(libc))]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user