[Unbound-users] unbound linking bug with pthreads

Florian Weimer fweimer at bfk.de
Fri Feb 26 08:13:09 UTC 2010

* Paul Wouters:

> On Thu, 25 Feb 2010, W.C.A. Wijngaards wrote:
>>>> %{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).
> But that's not the case, because linking happens without -lpthread. That's
> the original problem we started with.

Is PTHREAD_CFLAGS included while linking?  Obviously, it has to
be---then gcc will translate -pthread to -lpthread, according to the
specs rule I quoted.

Florian Weimer                <fweimer at bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

More information about the Unbound-users mailing list