Skip to content

Commit 1ae3b50

Browse files
committed
Add missing -lmsvcrt on mingw after -lpthread
Fixes #70316
1 parent 2113659 commit 1ae3b50

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)