On Tue, Nov 22, 2005 at 04:16:38PM -0500, Steven G. Johnson wrote: > On Mon, 21 Nov 2005, Qingning Huo wrote: > >>acx_pthread.m4 doesn't work. It detects "-pthread" as sufficient as > >>CFLAGS, which is not correct on my machine. You need -lthread > >>too. Shuffling the order of the variable acx_pthread_flags so that > > I'm guessing that the reporter is not using the macro correctly. > > As is clearly described in the documentation for this macro, it expects > you to use the $CFLAGS for *both* compiling *and* linking. If you do > this, then gcc should automatically link -lthread when you pass -pthread > during linking. > > Cordially, > Steven G. Johnson >
Hi Steven, Many thanks for your feedback. Lennart, can you confirm your situation, and whether using $CFLAGS when linking solves the problem? Thanks, Qingning
signature.asc
Description: Digital signature