From c54732d0ea603027bfdf5325d365b7e07829c332 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 9 Mar 2001 21:55:06 +0000 Subject: [PATCH] Update with some information about using configure and libtool. 2001-03-09 Tor Lillqvist * README.win32: Update with some information about using configure and libtool. --- ChangeLog | 7 +++++++ ChangeLog.pre-2-0 | 7 +++++++ ChangeLog.pre-2-10 | 7 +++++++ ChangeLog.pre-2-12 | 7 +++++++ ChangeLog.pre-2-2 | 7 +++++++ ChangeLog.pre-2-4 | 7 +++++++ ChangeLog.pre-2-6 | 7 +++++++ ChangeLog.pre-2-8 | 7 +++++++ README.win32 | 27 +++++++++++++++++---------- 9 files changed, 73 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index f26665c69..4394d4d8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-03-09 Tor Lillqvist + + * README.win32: Update with some information about using configure + and libtool. + 2001-03-09 Hans Breuer * gobject/gobject.def : updated @@ -116,6 +121,8 @@ Thu Feb 22 10:31:36 2001 Owen Taylor * gutils.c: For code needed both on Cygwin and native Win32, test for G_PLATFORM_WIN32. + * gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS. + * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT in case compiling a static library on Win32 or Cygwin. diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index f26665c69..4394d4d8f 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2001-03-09 Tor Lillqvist + + * README.win32: Update with some information about using configure + and libtool. + 2001-03-09 Hans Breuer * gobject/gobject.def : updated @@ -116,6 +121,8 @@ Thu Feb 22 10:31:36 2001 Owen Taylor * gutils.c: For code needed both on Cygwin and native Win32, test for G_PLATFORM_WIN32. + * gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS. + * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT in case compiling a static library on Win32 or Cygwin. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index f26665c69..4394d4d8f 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2001-03-09 Tor Lillqvist + + * README.win32: Update with some information about using configure + and libtool. + 2001-03-09 Hans Breuer * gobject/gobject.def : updated @@ -116,6 +121,8 @@ Thu Feb 22 10:31:36 2001 Owen Taylor * gutils.c: For code needed both on Cygwin and native Win32, test for G_PLATFORM_WIN32. + * gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS. + * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT in case compiling a static library on Win32 or Cygwin. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index f26665c69..4394d4d8f 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2001-03-09 Tor Lillqvist + + * README.win32: Update with some information about using configure + and libtool. + 2001-03-09 Hans Breuer * gobject/gobject.def : updated @@ -116,6 +121,8 @@ Thu Feb 22 10:31:36 2001 Owen Taylor * gutils.c: For code needed both on Cygwin and native Win32, test for G_PLATFORM_WIN32. + * gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS. + * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT in case compiling a static library on Win32 or Cygwin. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index f26665c69..4394d4d8f 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2001-03-09 Tor Lillqvist + + * README.win32: Update with some information about using configure + and libtool. + 2001-03-09 Hans Breuer * gobject/gobject.def : updated @@ -116,6 +121,8 @@ Thu Feb 22 10:31:36 2001 Owen Taylor * gutils.c: For code needed both on Cygwin and native Win32, test for G_PLATFORM_WIN32. + * gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS. + * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT in case compiling a static library on Win32 or Cygwin. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index f26665c69..4394d4d8f 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2001-03-09 Tor Lillqvist + + * README.win32: Update with some information about using configure + and libtool. + 2001-03-09 Hans Breuer * gobject/gobject.def : updated @@ -116,6 +121,8 @@ Thu Feb 22 10:31:36 2001 Owen Taylor * gutils.c: For code needed both on Cygwin and native Win32, test for G_PLATFORM_WIN32. + * gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS. + * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT in case compiling a static library on Win32 or Cygwin. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index f26665c69..4394d4d8f 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2001-03-09 Tor Lillqvist + + * README.win32: Update with some information about using configure + and libtool. + 2001-03-09 Hans Breuer * gobject/gobject.def : updated @@ -116,6 +121,8 @@ Thu Feb 22 10:31:36 2001 Owen Taylor * gutils.c: For code needed both on Cygwin and native Win32, test for G_PLATFORM_WIN32. + * gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS. + * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT in case compiling a static library on Win32 or Cygwin. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index f26665c69..4394d4d8f 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2001-03-09 Tor Lillqvist + + * README.win32: Update with some information about using configure + and libtool. + 2001-03-09 Hans Breuer * gobject/gobject.def : updated @@ -116,6 +121,8 @@ Thu Feb 22 10:31:36 2001 Owen Taylor * gutils.c: For code needed both on Cygwin and native Win32, test for G_PLATFORM_WIN32. + * gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS. + * gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT in case compiling a static library on Win32 or Cygwin. diff --git a/README.win32 b/README.win32 index 06105e3fa..480db916b 100644 --- a/README.win32 +++ b/README.win32 @@ -24,14 +24,19 @@ the prebuilt DLLs (especially of GTK+), you *must* also use that flag. (This flag means that the struct layout is identical to that used by MSVC.) -If you would want to use the cygwin tools to generate executables that -*do* use the cygwin runtime, the normal Unix configuration method -should work as if on Unix. But it won't produce DLLs. At least I -haven't succeeded in that. Also, I have no idea what changes are -necessary to the code for it to run successfully on cygwin. +If you would want to use the cygwin tools to generate a GLib that +*does* use the cygwin runtime, the normal Unix configuration method +should work as if on Unix. Note that successfully producing shared +libraries (DLLs) most probably requires you to have a very new libtool +(from March 2001), and to replace the libtool.m4 included in +acinclude.m4 with the new one, and to replace ltmain.sh. -With some work, it might be possible to use the ./configure mechanism -also with a "mingw32" configuration. +It is also possible to use the ./configure mechanism when building for +a mingw configuration. You should be running cygwin for the configure +script to work, obviously. The same libtool issue has to be taken into +account as when building for Cygwin: You most probably should have a +libtool from March 2001 or so, and replace libtool.m4 (in +acinclude.m4) and ltmain.sh. The following preprocessor macros are used for conditional compilation related to Win32: @@ -43,9 +48,11 @@ related to Win32: - G_WITH_CYGWIN is defined if compiling for the Cygwin environment. Note that G_OS_WIN32 is *not* defined in that case, as - Cygwin is supposed to behave like Unix. Building for Cygwin is not - supported. Some people have presumably done it, but no changes have - been submitted back. + Cygwin is supposed to behave like Unix. G_OS_UNIX *is* defined when + compiling for Cygwin. + +- G_PLATFORM_WIN32 is defined when either G_OS_WIN32 or G_WITH_CYGWIN + is defined. The Win32 port of GLib and related software uses only G_OS_WIN32. As G_OS_WIN32 is defined in glibconfig.h, it is available to all source