Skip to content

Commit ffebd8a

Browse files
mati865Mark-Simulacrum
authored andcommitted
Reoder order in which MinGW libs are linked
1 parent 04c208b commit ffebd8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustc_target/spec/windows_gnu_base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ pub fn opts() -> TargetOptions {
2020
late_link_args.insert(
2121
LinkerFlavor::Gcc,
2222
vec![
23+
"-lmsvcrt".to_string(),
2324
"-lmingwex".to_string(),
2425
"-lmingw32".to_string(),
25-
"-lmsvcrt".to_string(),
2626
// mingw's msvcrt is a weird hybrid import library and static library.
2727
// And it seems that the linker fails to use import symbols from msvcrt
2828
// that are required from functions in msvcrt in certain cases. For example

0 commit comments

Comments
 (0)