Tell about using the mingw-based gcc, which is much easier than modifying
authorTor Lillqvist <tml@iki.fi>
Sun, 26 Mar 2000 20:56:07 +0000 (20:56 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sun, 26 Mar 2000 20:56:07 +0000 (20:56 +0000)
2000-03-26  Tor Lillqvist  <tml@iki.fi>

* README.win32: Tell about using the mingw-based gcc, which is
much easier than modifying the cygwin gcc to product mingw code
for the msvcrt runtime.

* makefile.cygwin.in (WIN32APIHEADERS): Kludge to make it work
with a "pure" mingw gcc, too.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
README.win32
makefile.cygwin.in

index 92f3a66..38a173b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-03-26  Tor Lillqvist  <tml@iki.fi>
+
+       * README.win32: Tell about using the mingw-based gcc, which is
+       much easier than modifying the cygwin gcc to product mingw code
+       for the msvcrt runtime.
+
+       * makefile.cygwin.in (WIN32APIHEADERS): Kludge to make it work
+       with a "pure" mingw gcc, too.
+
 2000-03-24  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * garray.c: Made GArray behave correctly. Now zero_terminated
index 92f3a66..38a173b 100644 (file)
@@ -1,3 +1,12 @@
+2000-03-26  Tor Lillqvist  <tml@iki.fi>
+
+       * README.win32: Tell about using the mingw-based gcc, which is
+       much easier than modifying the cygwin gcc to product mingw code
+       for the msvcrt runtime.
+
+       * makefile.cygwin.in (WIN32APIHEADERS): Kludge to make it work
+       with a "pure" mingw gcc, too.
+
 2000-03-24  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * garray.c: Made GArray behave correctly. Now zero_terminated
index 92f3a66..38a173b 100644 (file)
@@ -1,3 +1,12 @@
+2000-03-26  Tor Lillqvist  <tml@iki.fi>
+
+       * README.win32: Tell about using the mingw-based gcc, which is
+       much easier than modifying the cygwin gcc to product mingw code
+       for the msvcrt runtime.
+
+       * makefile.cygwin.in (WIN32APIHEADERS): Kludge to make it work
+       with a "pure" mingw gcc, too.
+
 2000-03-24  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * garray.c: Made GArray behave correctly. Now zero_terminated
index 92f3a66..38a173b 100644 (file)
@@ -1,3 +1,12 @@
+2000-03-26  Tor Lillqvist  <tml@iki.fi>
+
+       * README.win32: Tell about using the mingw-based gcc, which is
+       much easier than modifying the cygwin gcc to product mingw code
+       for the msvcrt runtime.
+
+       * makefile.cygwin.in (WIN32APIHEADERS): Kludge to make it work
+       with a "pure" mingw gcc, too.
+
 2000-03-24  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * garray.c: Made GArray behave correctly. Now zero_terminated
index 92f3a66..38a173b 100644 (file)
@@ -1,3 +1,12 @@
+2000-03-26  Tor Lillqvist  <tml@iki.fi>
+
+       * README.win32: Tell about using the mingw-based gcc, which is
+       much easier than modifying the cygwin gcc to product mingw code
+       for the msvcrt runtime.
+
+       * makefile.cygwin.in (WIN32APIHEADERS): Kludge to make it work
+       with a "pure" mingw gcc, too.
+
 2000-03-24  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * garray.c: Made GArray behave correctly. Now zero_terminated
index 92f3a66..38a173b 100644 (file)
@@ -1,3 +1,12 @@
+2000-03-26  Tor Lillqvist  <tml@iki.fi>
+
+       * README.win32: Tell about using the mingw-based gcc, which is
+       much easier than modifying the cygwin gcc to product mingw code
+       for the msvcrt runtime.
+
+       * makefile.cygwin.in (WIN32APIHEADERS): Kludge to make it work
+       with a "pure" mingw gcc, too.
+
 2000-03-24  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * garray.c: Made GArray behave correctly. Now zero_terminated
index 92f3a66..38a173b 100644 (file)
@@ -1,3 +1,12 @@
+2000-03-26  Tor Lillqvist  <tml@iki.fi>
+
+       * README.win32: Tell about using the mingw-based gcc, which is
+       much easier than modifying the cygwin gcc to product mingw code
+       for the msvcrt runtime.
+
+       * makefile.cygwin.in (WIN32APIHEADERS): Kludge to make it work
+       with a "pure" mingw gcc, too.
+
 2000-03-24  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * garray.c: Made GArray behave correctly. Now zero_terminated
index 92f3a66..38a173b 100644 (file)
@@ -1,3 +1,12 @@
+2000-03-26  Tor Lillqvist  <tml@iki.fi>
+
+       * README.win32: Tell about using the mingw-based gcc, which is
+       much easier than modifying the cygwin gcc to product mingw code
+       for the msvcrt runtime.
+
+       * makefile.cygwin.in (WIN32APIHEADERS): Kludge to make it work
+       with a "pure" mingw gcc, too.
+
 2000-03-24  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * garray.c: Made GArray behave correctly. Now zero_terminated
index 5fc2a6b..f1f605c 100644 (file)
@@ -11,11 +11,11 @@ library is used.
 To build GLib on Win32, you can use either the Microsoft compiler and
 tools, or gcc. Both the compiler from MSVC 5.0 and from MSVC 6.0 have
 been used successfully. With gcc I mean gcc-2.95 or gcc-2.95.2 as
-distributed by Mumit Khan, running under cygwin-b20.1. To successfully
-use gcc, follow the instructions below. We want to use gcc
--mno-cygwin, i.e. produce executables (.exe and .dll files) that do
-*not* require the cygwin runtime library. This is sometimes called
-"mingw32".
+distributed by Mumit Khan, either as a mingw version (preferred), or
+running under cygwin. To successfully use gcc, follow the instructions
+below. We want to use gcc -mno-cygwin, i.e. produce executables (.exe
+and .dll files) that do *not* require the cygwin runtime library. This
+is called "mingw".
 
 To test the GLib functions, go to the tests subdirectory and enter
 `nmake -f makefile.msc check` or `make -f makefile.cygwin check`.
@@ -99,9 +99,23 @@ Building with gcc
 I use the latest and greatest gcc, gcc-2.95.2. 2.95 will also work.
 Earlier version might, but you are on your own.
 
-Read these instruction carefully and understand them. If you don't
-understand or can't follow the instructions, you probably shouldn't
-want to build GLib (or GTk+ or GIMP) yourself anyway. 
+You can either use gcc running on cygwin, or the "pure" mingw
+gcc. Using the latter is much easier. Just fetch the latest version of
+gcc for mingw and the msvcrt runtime, currently from
+ftp://ftp.nanotech.wisc.edu/pub/khan/gnu-win32/mingw32/snapshots/gcc-2.95.2-1/
+. Download the three zip archives: the gcc-<version>-msvcrt,
+mingw-msvcrt-<timestamp> and binutils-<timestamp>-msvcrt, and unpack
+them in a suitable directory. Set up your PATH so that the gcc from
+the bin directory that got created above is the one that gets
+used. You can skip steps 1--5 below. Even if you run the mingw gcc,
+you still want to have cygwin to run make in.
+
+If you want to run a cygwin-based gcc, it gets much more
+complicated. We still want gcc to produce code that does not use
+cygwin, but the msvcrt runtime. Read the below instruction carefully
+and understand them. If you don't understand or can't follow the
+instructions, you probably shouldn't want to build GLib (or GTk+ or
+GIMP) yourself anyway.
 
 0) Get and install Cygwin B20.1.
 
index b445286..968c388 100644 (file)
@@ -28,8 +28,10 @@ GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
 
 CFLAGS = $(OPTIMIZE) -I. -DHAVE_CONFIG_H
 
-# Kludge to get the path to the win32 headers
-WIN32APIHEADERS = $(shell echo "\#include <winver.h>" | $(CC) -M -E - | tail -1 | sed -e 's!/winver.h!!')
+# Kludge to get the path to the win32 headers. Should work for both
+# gcc running on cygwin, and bare mingw gcc, even if the make is
+# running on cygwin (whew).
+WIN32APIHEADERS = $(shell echo "\#include <winver.h>" | $(CC) -M -E - | tail -1 | sed -e 's![\\/]winver.h!!' | tr -d '\015')
 
 all : \
        config.h        \