Does someone know why this is going wrong?
-- Forwarded message --
Date: Wed, 24 Feb 2010 18:32:54 +0100
From: W.C.A. Wijngaards wou...@nlnetlabs.nl
To: unbound-us...@unbound.net
Subject: Re: [Unbound-users] unbound linking bug with pthreads
-BEGIN PGP SIGNED MESSAGE-
-pthread is indeed sufficient when it's really given to the linking $CC run.
Does someone know why this is going wrong?
In unbound.spec I see:
%{__make} CFLAGS=$RPM_OPT_FLAGS -D_GNU_SOURCE QUIET=no %{?_smp_mflags}
This overrides the CFLAGS setting written into Makefile by configure.
You
Though CFLAGS is not the issue, LIBS= is.
You are mistaken. Your configure check decides -pthread alone is
sufficient (which it is), and that is all it sets. If your configure put
-lpthread into LIBS, then you would not have a problem. The substitution
of LIBS into the makefile is working