diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-12-16 22:14:40 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-12-16 22:14:40 +0000 |
commit | 66a12cdfaed5a1e46c86a941206abee2bdcbdb2d (patch) | |
tree | 9e4ba81156579d775e11cc8a0159aed3ec991654 | |
parent | 7c5b3eb4d6d985b26fcebbf80cb48ac0a407451c (diff) |
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)
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 8 | ||||
-rw-r--r-- | ChangeLog.pre-2-12 | 8 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 8 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 8 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 8 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 8 | ||||
-rw-r--r-- | configure.in | 17 |
8 files changed, 73 insertions, 0 deletions
@@ -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 diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 15aaa8354..a5c043d0a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -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 diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 15aaa8354..a5c043d0a 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -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 diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 15aaa8354..a5c043d0a 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -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 diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 15aaa8354..a5c043d0a 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -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 diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 15aaa8354..a5c043d0a 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -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 diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 15aaa8354..a5c043d0a 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -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 diff --git a/configure.in b/configure.in index 3ae989fc6..4d2d1bd53 100644 --- a/configure.in +++ b/configure.in @@ -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 ********************************************** |