Non-threaded app dlopen-ing a thread-using library

Mikhail Teterin mi+kde at aldan.algebra.com
Tue Oct 4 23:02:54 PDT 2005


Hello!

I'm trying to improve the security/xmlsec1 port to support the
nss-backend (which vendor supports, but the port does not).

Nss (security/nss) use nspr (devel/nspr), which uses threads.

The xmlsec1 executable, built by the security/xmlsec1 port is not
multi-threaded by itself, but it is opening the specified back-ends at
run-time.

Do I need to make the executable itself multi-threaded -- just in case
it needs to dlopen() a thread-using library, or is there a better way?

Its other possible back-ends -- OpenSSL and GNUTLS -- do not use
threads.

Thanks!

	-mi




More information about the freebsd-threads mailing list