From 2692308a79cbdf41b7d8fa50a90c12ed89aa76f0 Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Fri, 10 Jan 2003 01:44:52 +0000 Subject: [PATCH] Support default output name (a.out); some configure scripts check for it. --- tools/winegcc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/winegcc.c b/tools/winegcc.c index 769edaf4e96..530223b0f64 100644 --- a/tools/winegcc.c +++ b/tools/winegcc.c @@ -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";