[gnutls-devel] GnuTLS | fix threading bug in libgnutls (#1044)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sun Jun 28 17:22:10 CEST 2020

James Bottomley commented:

> Daiki Ueno commented:
> Thanks for the suggestion; afaik gnutls tried to remove the hard
> dependency on libpthread in favor of the glibc stubs, though it has
> never been complete as it's technically not possible to remove
> libpthread dependency from p11-kit (see [the reasoning](https://githu
> b.com/p11-glue/p11-kit/pull/177)).

I'm not saying don't do that, I'm just saying you're using the wrong
gnulib variable.

> I think the best way to handle this is to rely on the pthread module
> in gnulib, which adjusts [compiler / linker
> flags](https://git.savannah.gnu.org/cgit/gnulib.git/tree/m4/threadlib
> .m4#n558) properly on different platforms.

You do ... you just use the wrong variable: you have to use LIBPTHREAD
because nowhere in gnulib is LTLIBPTHREAD set.  One could argue this is
a but in gnulib, but it's a bug that's impacting gnutls.


Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1044#note_369491140
You're receiving this email because of your account on gitlab.com.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200628/81f3cdc2/attachment.html>

More information about the Gnutls-devel mailing list