[windows-gnu] Link pthread statically

This commit is contained in:
Mateusz Mikuła 2020-04-12 18:11:11 +02:00
parent 7e68cf8927
commit a32e3408bf

View File

@ -57,9 +57,9 @@ pub fn opts() -> TargetOptions {
// binaries to be redistributed without the libgcc_s-dw2-1.dll // binaries to be redistributed without the libgcc_s-dw2-1.dll
// dependency, but unfortunately break unwinding across DLL // dependency, but unfortunately break unwinding across DLL
// boundaries when unwinding across FFI boundaries. // boundaries when unwinding across FFI boundaries.
"-lgcc".to_string(),
"-lgcc_eh".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*. // libpthread depends on libmsvcrt, so we need to link it *again*.
"-lmsvcrt".to_string(), "-lmsvcrt".to_string(),
"-lkernel32".to_string(), "-lkernel32".to_string(),