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
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]