[gnutls-dev] Re: living without global variables

Florian Weimer fw at deneb.enyo.de
Mon Jan 30 17:20:03 CET 2006


* Simon Josefsson:

> The problem with libgcrypt is that gnutls cannot initialize it
> correctly, because libgcrypt need to know about threads, of which
> gnutls know nothing.

This means that you probably need to do away with the need for
initialization in libgcrypt.

Use .init sections (aka C++ constructors)?  Nowadays, they are
available on most systems.  Or what about pthread_once?  You only need
a static initialize to use it.



More information about the Gnutls-dev mailing list