+Mon Dec 16 14:58:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in: Add a hack to mostly deal with
+ problems in support of -pthread and -lpthread;
+ pass -lpthread (for linux) or -Wc,-pthread (for
+ other platforms) to libtool when linking libgthread.
+ (#100697)
+
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
+Mon Dec 16 14:58:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in: Add a hack to mostly deal with
+ problems in support of -pthread and -lpthread;
+ pass -lpthread (for linux) or -Wc,-pthread (for
+ other platforms) to libtool when linking libgthread.
+ (#100697)
+
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
+Mon Dec 16 14:58:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in: Add a hack to mostly deal with
+ problems in support of -pthread and -lpthread;
+ pass -lpthread (for linux) or -Wc,-pthread (for
+ other platforms) to libtool when linking libgthread.
+ (#100697)
+
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
+Mon Dec 16 14:58:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in: Add a hack to mostly deal with
+ problems in support of -pthread and -lpthread;
+ pass -lpthread (for linux) or -Wc,-pthread (for
+ other platforms) to libtool when linking libgthread.
+ (#100697)
+
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
+Mon Dec 16 14:58:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in: Add a hack to mostly deal with
+ problems in support of -pthread and -lpthread;
+ pass -lpthread (for linux) or -Wc,-pthread (for
+ other platforms) to libtool when linking libgthread.
+ (#100697)
+
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
+Mon Dec 16 14:58:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in: Add a hack to mostly deal with
+ problems in support of -pthread and -lpthread;
+ pass -lpthread (for linux) or -Wc,-pthread (for
+ other platforms) to libtool when linking libgthread.
+ (#100697)
+
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
+Mon Dec 16 14:58:33 2002 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in: Add a hack to mostly deal with
+ problems in support of -pthread and -lpthread;
+ pass -lpthread (for linux) or -Wc,-pthread (for
+ other platforms) to libtool when linking libgthread.
+ (#100697)
+
2002-12-16 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32.c (do_spawn): Fix potential heap
GLIB_SIZEOF(,void *, system_thread)
fi
+#
+# Hack to deal with:
+#
+# a) GCC < 3.3 for Linux doesn't include -lpthread when
+# building shared libraries with linux.
+# b) libtool doesn't recognize -pthread as a library dependency.
+#
+case $host in
+ *-*-linux*)
+ G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
+ ;;
+ *)
+ G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-Wc,-pthread/`"
+ ;;
+esac
+
AC_DEFINE_UNQUOTED(G_THREAD_SOURCE,"gthread-$have_threads.c",
[Source file containing theread implementation])
AC_SUBST(G_THREAD_CFLAGS)
AC_SUBST(G_THREAD_LIBS)
+AC_SUBST(G_THREAD_LIBS_FOR_GTHREAD)
AC_SUBST(G_THREAD_LIBS_EXTRA)
dnl **********************************************