Use libglib-1.3.la from top_builddir. Invoke libtool with -no-undefined
authorTor Lillqvist <tml@iki.fi>
Fri, 9 Mar 2001 21:41:37 +0000 (21:41 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Fri, 9 Mar 2001 21:41:37 +0000 (21:41 +0000)
2001-02-21  Tor Lillqvist  <tml@iki.fi>

* Makefile.am: Use libglib-1.3.la from top_builddir. Invoke
libtool with -no-undefined for Win32 and Cygwin.

* gthread-impl.c (g_thread_init): Win32 code snippet used also on
Cygwin.

gthread/ChangeLog
gthread/Makefile.am
gthread/gthread-impl.c

index 36754963aea7a75d871391fe3dc8b2bb0bd801bc..9aab5a8d24fd960a0b81148bfc77cd694e5df135 100644 (file)
@@ -1,3 +1,11 @@
+2001-02-21  Tor Lillqvist  <tml@iki.fi>
+
+       * Makefile.am: Use libglib-1.3.la from top_builddir. Invoke
+       libtool with -no-undefined for Win32 and Cygwin.
+
+       * gthread-impl.c (g_thread_init): Win32 code snippet used also on
+       Cygwin.
+
 2001-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gthread-posix.c: Removed the G_THREAD_USE_PID_SURROGATE
index 41750af03e07f776560962e0653c211e47dbe9e3..4780748d92c89af7a5c5cfe4b203021cc8092a97 100644 (file)
@@ -18,18 +18,25 @@ BUILT_EXTRA_DIST = \
                makefile.msc            \
                gthread.rc
 
-libglib = $(top_builddir)/libglib.la # -lglib
+libglib = $(top_builddir)/libglib-1.3.la
 
 top_builddir_full=`cd \$(top_builddir); pwd`
 
 lib_LTLIBRARIES = libgthread-1.3.la
 
+if PLATFORM_WIN32
+no_undefined = -no-undefined
+endif
+if OS_WIN32
+export_symbols = -export-symbols gthread.def
+endif
+
 libgthread_1_3_la_SOURCES = gthread-impl.c
 libgthread_1_3_la_LDFLAGS = \
        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-       -export-dynamic
+       -export-dynamic $(no_undefined) $(export_symbols)
 
-libgthread_1_3_la_LIBADD = @G_THREAD_LIBS_EXTRA@ @G_THREAD_LIBS@
+libgthread_1_3_la_LIBADD = @G_THREAD_LIBS_EXTRA@ @G_THREAD_LIBS@ $(libglib)
 
 gthread.rc: $(top_builddir)/config.status $(top_srcdir)/gthread/gthread.rc.in
        cd $(top_builddir) && CONFIG_FILES=gthread/$@ CONFIG_HEADERS= $(SHELL) ./config.status
index 6d194994ac41cea13d655a9dfcd9d5336eef9924..01c682be0a3386d0d363e4e24a0b3524d3c7691b 100644 (file)
@@ -318,7 +318,7 @@ g_thread_init (GThreadFunctions* init)
   else
     g_thread_use_default_impl = FALSE;
 
-#if defined (G_OS_WIN32) && defined (__GNUC__)
+#if defined (G_PLATFORM_WIN32) && defined (__GNUC__)
   memcpy(&g_thread_functions_for_glib_use, init, sizeof (*init));
 #else
   g_thread_functions_for_glib_use = *init;