Skip to content

Commit

Permalink
Rollup merge of rust-lang#70605 - Amanieu:pthread_msvcrt, r=varkor
Browse files Browse the repository at this point in the history
Add missing -lmsvcrt on mingw after -lpthread

Fixes rust-lang#70316
  • Loading branch information
Dylan-DPC authored Mar 31, 2020
2 parents 81f19ec + 1ae3b50 commit ddcc281
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 ddcc281

Please sign in to comment.