Skip to content

Commit ddcc281

Browse files
authored
Rollup merge of #70605 - Amanieu:pthread_msvcrt, r=varkor
Add missing -lmsvcrt on mingw after -lpthread Fixes #70316
2 parents 81f19ec + 1ae3b50 commit ddcc281

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_target/spec/windows_base.rs

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ pub fn opts() -> TargetOptions {
6060
"-lgcc".to_string(),
6161
"-lgcc_eh".to_string(),
6262
"-lpthread".to_string(),
63+
// libpthread depends on libmsvcrt, so we need to link it *again*.
64+
"-lmsvcrt".to_string(),
6365
"-lkernel32".to_string(),
6466
],
6567
);

0 commit comments

Comments
 (0)