Skip to content

Commit

Permalink
Add missing -lmsvcrt on mingw after -lpthread
Browse files Browse the repository at this point in the history
Fixes #70316
  • Loading branch information
Amanieu committed Mar 31, 2020
1 parent 2113659 commit 1ae3b50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_target/spec/windows_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ pub fn opts() -> TargetOptions {
"-lgcc".to_string(),
"-lgcc_eh".to_string(),
"-lpthread".to_string(),
// libpthread depends on libmsvcrt, so we need to link it *again*.
"-lmsvcrt".to_string(),
"-lkernel32".to_string(),
],
);
Expand Down

0 comments on commit 1ae3b50

Please sign in to comment.