From 561a3e643ea8b35adfc032d3afa979c622fcec23 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 19 Mar 2010 13:59:54 +0100 Subject: [PATCH] winegcc: Force importing msvcrt when using the Unicode hack for a Windows build. Based on a patch by Alexandre Goujon. --- tools/winegcc/winegcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index 852f1052140..396bcc80a9e 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -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 );