Commit 561a3e64 authored by Alexandre Julliard's avatar Alexandre Julliard

winegcc: Force importing msvcrt when using the Unicode hack for a Windows build.

Based on a patch by Alexandre Goujon.
parent c9abeb37
......@@ -704,7 +704,6 @@ static void build(struct options* opts)
{
strarray_addall(link_args, get_translator(opts));
strarray_add(link_args, opts->gui_app ? "-mwindows" : "-mconsole");
if (opts->use_msvcrt) strarray_add(link_args, "-mno-cygwin");
if (opts->nodefaultlibs) strarray_add(link_args, "-nodefaultlibs");
}
......@@ -777,6 +776,7 @@ static void build(struct options* opts)
break;
}
}
if (!opts->shared && (opts->use_msvcrt || opts->unicode_app)) strarray_add(link_args, "-lmsvcrt");
if (res_o_name) compile_resources_to_object( opts, resources, res_o_name );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment