On Tue, 22.11.05 16:16, Steven G. Johnson ([EMAIL PROTECTED]) 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.

Mea Culpa! I modified my Makefile.ams now according to your
suggestion and it works indeed. Sorry for the confusion! 

I guess this bug can be closed now!

Lennart

-- 
Lennart Poettering; lennart [at] poettering [dot] de
ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.de/lennart/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to