winegcc: Link with msvcrt on windows because of __wargv
Alexandre Goujon
ale.goujon at gmail.com
Thu Mar 18 09:21:08 CDT 2010
---
tools/winegcc/winegcc.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index c2e7876..a929214 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -555,6 +555,10 @@ static const char *mingw_unicode_hack( struct options *opts )
{
char *main_stub = get_temp_file( opts->output_name, ".c" );
+ //we need to link with msvcrt because of __wargv
+ if (!opts->use_msvcrt)
+ opts->use_msvcrt = 1;
+
create_file( main_stub, 0644,
"#include <stdlib.h>\n"
"extern int wmain(int,wchar_t**);\n"
--
1.6.3.3
More information about the wine-patches
mailing list