* doc/libtool.texi: notes on thread-safety problems of

libltdl/dlopen on GNU/Linux and FreeBSD
This commit is contained in:
Alexandre Oliva 1999-03-14 03:34:32 +00:00 committed by Alexandre Oliva
parent 5030549808
commit a1210f767e
2 changed files with 10 additions and 1 deletions

View File

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

View 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}: