diff options
| author | Mateusz Mikuła <mati865@gmail.com> | 2020-04-12 18:11:11 +0200 |
|---|---|---|
| committer | Mateusz Mikuła <mati865@gmail.com> | 2020-04-12 21:59:40 +0200 |
| commit | a32e3408bf061787d81eac9d8bfdd5874efd56a6 (patch) | |
| tree | 0e12a65529b0553fcfa06a14cccfd3e1f3c92a52 | |
| parent | 7e68cf89275e77a2a2877e829122413c55280c41 (diff) | |
| download | rust-a32e3408bf061787d81eac9d8bfdd5874efd56a6.tar.gz rust-a32e3408bf061787d81eac9d8bfdd5874efd56a6.zip | |
[windows-gnu] Link pthread statically
| -rw-r--r-- | src/librustc_target/spec/windows_base.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_target/spec/windows_base.rs b/src/librustc_target/spec/windows_base.rs index 34fcdf251b8..392b9f49991 100644 --- a/src/librustc_target/spec/windows_base.rs +++ b/src/librustc_target/spec/windows_base.rs @@ -57,9 +57,9 @@ pub fn opts() -> TargetOptions { // binaries to be redistributed without the libgcc_s-dw2-1.dll // dependency, but unfortunately break unwinding across DLL // boundaries when unwinding across FFI boundaries. - "-lgcc".to_string(), "-lgcc_eh".to_string(), - "-lpthread".to_string(), + "-l:libpthread.a".to_string(), + "-lgcc".to_string(), // libpthread depends on libmsvcrt, so we need to link it *again*. "-lmsvcrt".to_string(), "-lkernel32".to_string(), |
