Re: pthreads linking in devel/F-13 issue

2010-02-24 Thread Roland McGrath
> 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 fin

Re: pthreads linking in devel/F-13 issue

2010-02-24 Thread Paul Wouters
On Wed, 24 Feb 2010, Roland McGrath wrote: Thanks for the reply. > -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} >

Re: pthreads linking in devel/F-13 issue

2010-02-24 Thread Roland McGrath
-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 sh

pthreads linking in devel/F-13 issue

2010-02-24 Thread Paul Wouters
Does someone know why this is going wrong? -- Forwarded message -- Date: Wed, 24 Feb 2010 18:32:54 +0100 From: W.C.A. Wijngaards To: unbound-us...@unbound.net Subject: Re: [Unbound-users] unbound linking bug with pthreads -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Paul,