ChangeLog Dimitrie O. Paun dpaun@rogers.com Don't adjust the extension for DLLs.
Index: tools/winegcc/winegcc.c =================================================================== RCS file: /var/cvs/wine/tools/winegcc/winegcc.c,v retrieving revision 1.21 diff -u -r1.21 winegcc.c --- tools/winegcc/winegcc.c 23 Mar 2004 00:14:54 -0000 1.21 +++ tools/winegcc/winegcc.c 23 Mar 2004 18:00:24 -0000 @@ -348,7 +348,7 @@ strarray *spec_args, *comp_args, *link_args; char *output_file; const char *spec_c_name, *spec_o_name; - const char *output_name, *spec_file, *def_ext; + const char *output_name, *spec_file; const char* winebuild = getenv("WINEBUILD"); int generate_app_loader = 1; int j; @@ -378,11 +378,10 @@ generate_app_loader = 0;
/* normalize the filename a bit: strip .so, ensure it has proper ext */ - def_ext = opts->shared ? ".dll" : ".exe"; if (strendswith(output_file, ".so")) output_file[strlen(output_file) - 3] = 0; - if(!strendswith(output_file, def_ext)) - output_file = strmake("%s%s", output_file, def_ext); + if (!opts->shared && !strendswith(output_file, ".exe")) + output_file = strmake("%s.exe", output_file);
/* get the filename by the path, if present */ if ((output_name = strrchr(output_file, '/'))) output_name++;