[Unbound-users] unbound linking bug with pthreads

Florian Weimer fweimer at bfk.de
Thu Feb 25 08:34:02 UTC 2010

* W. C. A. Wijngaards:

> 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:

%{pthread:-lpthread}    %{shared:-lc}    %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}

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