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.
@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}: