<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<p style="color: #777777;">
<a href="https://gitlab.com/jejb">James Bottomley</a>
commented:
</p>
<div style="">
<blockquote dir="auto">
<p>Daiki Ueno commented:</p>
<p>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](<a href="https://githu" rel="nofollow noreferrer noopener" target="_blank">https://githu</a>
b.com/p11-glue/p11-kit/pull/177)).</p>
</blockquote>
<p dir="auto">I'm not saying don't do that, I'm just saying you're using the wrong
gnulib variable.</p>
<blockquote dir="auto">
<p>I think the best way to handle this is to rely on the pthread module
in gnulib, which adjusts [compiler / linker
flags](<a href="https://git.savannah.gnu.org/cgit/gnulib.git/tree/m4/threadlib" rel="nofollow noreferrer noopener" target="_blank">https://git.savannah.gnu.org/cgit/gnulib.git/tree/m4/threadlib</a>
.m4#n558) properly on different platforms.</p>
</blockquote>
<p dir="auto">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.</p>
<p dir="auto">James</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1044#note_369491140">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/df86ec369919797c5c0b09abcdc7badb/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1044#note_369491140"}}</script>
</p>
</div>
</body>
</html>