WineHQ: Add more to the crt0 idea

Dimitrie O. Paun dpaun at rogers.com
Tue Apr 13 07:59:27 CDT 2004


ChangeLog
    Add Alexandre's idea of calling exit() instead of
    ExitProcess() for Winelib apps linked with msvcrt.

-- 
Dimi.
-------------- next part --------------
Index: templates/en/janitorial.template
===================================================================
RCS file: /home/wine/lostwages/templates/en/janitorial.template,v
retrieving revision 1.32
diff -u -r1.32 janitorial.template
--- templates/en/janitorial.template	12 Apr 2004 19:09:50 -0000	1.32
+++ templates/en/janitorial.template	13 Apr 2004 12:58:04 -0000
@@ -441,7 +441,8 @@
   it inside the spec file directly but it would be cleaner to have a separate crt0.o file;
   it's also needed if we want full msvcrt compatibility. We need at least a crt0.o to call 
   main(), and another .o providing the default main(). There may also be a need to handle 
-  msvcrt specially (i.e. link another .a in msvcrt mode).</i><br>
+  msvcrt specially (i.e. link another .a in msvcrt mode), so that we call exit() when
+  linked to msvcrt instead of calling ExitProcess() as we normally do.</i><br>
   From Dimi: <i>So, let's say we'll create a winecrt0-glibc.a and a winecrt0-msvcrt.a, 
   and in winegcc we assume that they are there, so we can just list the appropriate one
   as the last element on the linker command line.</i>


More information about the wine-patches mailing list