winegcc: default output to a.out

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Index: tools/winegcc.c
===================================================================
RCS file: /var/cvs/wine/tools/winegcc.c,v
retrieving revision 1.8
diff -u -r1.8 winegcc.c
--- tools/winegcc.c	7 Jan 2003 19:47:19 -0000	1.8
+++ tools/winegcc.c	8 Jan 2003 05:44:53 -0000
@@ -218,6 +218,8 @@
     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 @@
 			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"; 
@@ -250,6 +253,13 @@
 	    {
 		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";

-- 
Dimi.



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux