Add a hack to mostly deal with problems in support of -pthread and

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)
This commit is contained in:
Owen Taylor 2002-12-16 22:14:40 +00:00 committed by Owen Taylor
parent 7c5b3eb4d6
commit 66a12cdfae
8 changed files with 73 additions and 0 deletions

View File

@ -1,3 +1,11 @@
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

View File

@ -1,3 +1,11 @@
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

View File

@ -1,3 +1,11 @@
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

View File

@ -1,3 +1,11 @@
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

View File

@ -1,3 +1,11 @@
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

View File

@ -1,3 +1,11 @@
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

View File

@ -1,3 +1,11 @@
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

View File

@ -1713,10 +1713,27 @@ if test x"$glib_cv_sizeof_system_thread" = x; then
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 **********************************************