[gnutls-devel] Automatic library initialization

Tim Ruehsen tim.ruehsen at gmx.de
Mon Nov 16 10:36:41 CET 2015


On Wednesday 11 November 2015 11:33:32 Nikos Mavrogiannopoulos wrote:
> On Tue, Nov 10, 2015 at 4:23 PM, Tim Ruehsen <tim.ruehsen at gmx.de> wrote:
> > Hi,
> > 
> > an executable, dynamically linked with GnuTLS, automatically calls
> > gnutls_global_init(). And thus (in my case) eats up 60x more CPU cycles
> > than needed.
> > The executable only needs GnuTLS under some conditions (TLS connection
> > requested). In this case it 'manually' calls gnutls_global_init().
> 
> There is the undocumented env variable GNUTLS_NO_EXPLICIT_INIT. If you
> set it to 1 you disable the use of constructor and destructors to load
> gnutls.

Hi Nikos,

this variable does not exist in 3_3_x branch. In 3_4_x it is documented.

Bad luck for me :-(, Debian still uses 3.3.x.

Could you backport it to 3.3 (commit 205ad24f and 9b43ac82) ?

Regards, Tim




More information about the Gnutls-devel mailing list