]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* doc/libtool.texi: notes on thread-safety problems of
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 14 Mar 1999 03:34:32 +0000 (03:34 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 14 Mar 1999 03:34:32 +0000 (03:34 +0000)
libltdl/dlopen on GNU/Linux and FreeBSD

ChangeLog
doc/libtool.texi

index cb1feac242cc88dc1024dc9da0f2469a600d26c6..9c4ba75a16a008059c4cfb154ac5d229145b9f57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 1999-03-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * 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.
index 51fa511e2c63247cd0398ccd4a9cc1b78c01e18f..7640a9a972f680e6a9a3513174320d4a72a4252c 100644 (file)
@@ -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}: