HomeFreeBSD

security/gnutls: initialise libpthread

Description

security/gnutls: initialise libpthread

To ensure thread-safety libgnutls calls libpthread functions but to
avoid the overhead for single-threaded programs it does not link with
libpthread. It only calls libpthread if the executable or another
library links to it.

Since 3.8.0 libgnutls calls pthread_key_create from its init function
but because it does not link with libpthread libpthread might not have
been initialised yet. Patch the libgnutls init function so it
initialises libpthread.

PR: 278076
(cherry picked from commit 9ffc65e659a32a4eb293afd5c4d03be553a61570)

Details

Provenance
tijlAuthored on Fri, Apr 12, 7:03 PM
Parents
R11:b4e267914c75: www/*chromium: update to 123.0.6312.122
Branches
Unknown
Tags
Unknown