[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [PATCH] [RFC] Haiku host support and general config
From: |
Jamie Lokier |
Subject: |
Re: [Qemu-devel] Re: [PATCH] [RFC] Haiku host support and general configure issues |
Date: |
Sat, 28 Feb 2009 20:26:13 +0000 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Andreas Färber wrote:
> Hm, the so-called AIO check is rather a pthreads check:
>
> #include <pthread.h>
> int main(void) { pthread_mutex_t lock; return 0; }
>
> If that compiles, a working -lpthread is assumed. It's buggy in itself
> because it first sets AIOLIBS="", then compiles with unchanged empty
> $AIOLIBS and then sets AIOLIBS="-lpthread".
>
> >>AIOLIBS is set to -lpthread but that is not available on Haiku.
> >
> >Well we should have a pthread lib available though...
Note that "-lpthread" is not even a portable way to get pthreads -
even if it links successfully, it need not behave correctly. (Think
of libc having different versions for threads and no-threads).
Maybe that's why Haiku doesn't have -lpthread.
-- Jamie