From: Alexandre Oliva Date: Sun, 14 Mar 1999 03:34:32 +0000 (+0000) Subject: * doc/libtool.texi: notes on thread-safety problems of X-Git-Tag: release-1-2f~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1210f767eb7e28a416719c01f99726aa37d756f;p=thirdparty%2Flibtool.git * doc/libtool.texi: notes on thread-safety problems of libltdl/dlopen on GNU/Linux and FreeBSD --- diff --git a/ChangeLog b/ChangeLog index cb1feac24..9c4ba75a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-03-14 Alexandre Oliva + * doc/libtool.texi: notes on thread-safety problems of + libltdl/dlopen on GNU/Linux and FreeBSD + * ltconfig.in (aix3*, aix4*): GNU ld on AIX is very broken: it cannot create working shared libraries. Print a warning suggesting the user not to use it and disable shared libraries. diff --git a/doc/libtool.texi b/doc/libtool.texi index 51fa511e2..7640a9a97 100644 --- a/doc/libtool.texi +++ b/doc/libtool.texi @@ -2587,7 +2587,13 @@ To use libltdl in your program you have include the header file @file{ltdl.h}: @noindent Note that libltdl is not threadsafe, i.e. a multithreaded application -has to use a mutex for libltdl. +has to use a mutex for libltdl. It was reported that GNU/Linux's glibc +2.0's @code{dlopen} with @samp{RTLD_LAZY} (which libltdl uses by +default) is not thread-safe, but this problem is supposed to be fixed in +glibc 2.1. On the other hand, @samp{RTLD_NOW} was reported to introduce +problems in multi-threaded applications on FreeBSD. Working around +these problems is left as an exercise for the reader; contributions are +certainly welcome. @noindent The following types are defined in @file{ltdl.h}: