[gnutls-devel] [TLS] multiple clients in one process (was: Re: Deployment ... Re: This working group has failed)

Nico Williams nico at cryptonector.com
Sun Dec 1 20:11:31 CET 2013


The obvious things to do re: complaints about having to link with -lpthread:

a) "sorry, too bad",

or

b) "ok, you can build w/o thread support; good luck",

or

c) audo-detect pthread presence at init time using weak symbols or
dlsym() on RTLD_DEFAULT.

(c) is dangerous: the app might dlopen() something that links with
-lpthread and uses your library in addition to the app using your
library.  It's best to require a threaded model everywhere (even if
only one thread is ever used).

Nico
--



More information about the Gnutls-devel mailing list