Skip to content

Commit a32e340

Browse files
committed
[windows-gnu] Link pthread statically
1 parent 7e68cf8 commit a32e340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_target/spec/windows_base.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ pub fn opts() -> TargetOptions {
5757
// binaries to be redistributed without the libgcc_s-dw2-1.dll
5858
// dependency, but unfortunately break unwinding across DLL
5959
// boundaries when unwinding across FFI boundaries.
60-
"-lgcc".to_string(),
6160
"-lgcc_eh".to_string(),
62-
"-lpthread".to_string(),
61+
"-l:libpthread.a".to_string(),
62+
"-lgcc".to_string(),
6363
// libpthread depends on libmsvcrt, so we need to link it *again*.
6464
"-lmsvcrt".to_string(),
6565
"-lkernel32".to_string(),

0 commit comments

Comments
 (0)