[Unbound-users] unbound linking bug with pthreads

W.C.A. Wijngaards wouter at NLnetLabs.nl
Thu Feb 25 16:33:06 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/25/2010 05:18 PM, Paul Wouters wrote:
> On Thu, 25 Feb 2010, Florian Weimer wrote:
> 
>>> For me, I end up with -pthread in the CFLAGS. This is included on the
>>> commandline when linking.  Perhaps -pthread is enough when linking, or
>>> does it have to be -lpthread ?
>>
>> -pthread should cause -lpthread to be passed during linking:
>>
>> *lib:
>> %{pthread:-lpthread}    %{shared:-lc}    %{!shared:%{mieee-fp:-lieee}
>> %{profile:-lc_p}%{!profile:-lc}}
> 
> What should "cause" this? Because it is not happening.

checking whether pthreads work with -pthread... yes

It then ends up in PTHREAD_CFLAGS and is included in CFLAGS (used for
compiling and linking).

Best regards,
   Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkuGpkIACgkQkDLqNwOhpPiDJQCdETon/XlhYQ1UqAqNSlCgX4UW
5OwAn01QRpeg6Rl8m3wqhPpDWv1MD6d1
=VSAv
-----END PGP SIGNATURE-----



More information about the Unbound-users mailing list