winegcc: use CC to compile the .spec.c file

Dimitrie O. Paun dimi at intelliware.ca
Wed Apr 14 14:39:32 CDT 2004


ChangeLog
    Dimitrie O. Paun <dpaun at rogers.com>
    Always use CC to compile the .spec.c file.
    Remove unused variable.

Index: tools/winegcc/winegcc.c
===================================================================
RCS file: /var/cvs/wine/tools/winegcc/winegcc.c,v
retrieving revision 1.25
diff -u -r1.25 winegcc.c
--- tools/winegcc/winegcc.c	9 Apr 2004 19:02:18 -0000	1.25
+++ tools/winegcc/winegcc.c	14 Apr 2004 19:32:59 -0000
@@ -345,7 +345,7 @@
 {
     static const char *stdlibpath[] = { DLLDIR, LIBDIR, "/usr/lib", "/usr/local/lib", "/lib" };
     strarray *lib_dirs, *files;
-    strarray *spec_args, *comp_args, *link_args;
+    strarray *spec_args, *link_args;
     char *output_file;
     const char *spec_c_name, *spec_o_name;
     const char *output_name, *spec_file;
@@ -535,7 +535,8 @@
     spawn(opts->prefix, spec_args);
 
     /* compile the .spec.c file into a .spec.o file */
-    comp_args = strarray_alloc();
+    /* force the use of CC for this one. */
+    opts->processor = proc_cc;
     spec_o_name = compile_to_object(opts, spec_c_name);
     
     /* link everything together now */

-- 
Dimi.




More information about the wine-patches mailing list