Support default output name (a.out); some configure scripts check for

it.
This commit is contained in:
Dimitrie O. Paun 2003-01-10 01:44:52 +00:00 committed by Alexandre Julliard
parent 44fb75f62c
commit 2692308a79
1 changed files with 10 additions and 0 deletions

View File

@ -218,6 +218,8 @@ int main(int argc, char **argv)
i = 0;
if (linking)
{
int has_output_name = 0;
gcc_argv[i++] = BINDIR "/winewrap";
if (gui_app) gcc_argv[i++] = "-mgui";
@ -237,6 +239,7 @@ int main(int argc, char **argv)
gcc_argv[i++] = argv[++j];
argv[j] = 0;
}
has_output_name = 1;
break;
case 'l':
gcc_argv[i++] = strcmp(argv[j], "-luuid") ? argv[j] : "-lwine_uuid";
@ -251,6 +254,13 @@ int main(int argc, char **argv)
gcc_argv[i++] = get_obj_file(argv, j);
argv[j] = 0;
}
/* Support the a.out default name, to appease configure */
if (!has_output_name)
{
gcc_argv[i++] = "-o";
gcc_argv[i++] = "a.out";
}
}
if (use_stdlib && use_msvcrt) gcc_argv[i++] = "-lmsvcrt";
if (gui_app) gcc_argv[i++] = "-lcomdlg32";