Skip to content

Commit e237e02

Browse files
committed
Reoder order in which MinGW libs are linked
1 parent feb3536 commit e237e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)