mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
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:
parent
7c5b3eb4d6
commit
66a12cdfae
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
17
configure.in
17
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 **********************************************
|
||||
|
Loading…
Reference in New Issue
Block a user