qemu-devel
[Top][All Lists]
Advanced

[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: François Revol
Subject: Re: [Qemu-devel] Re: [PATCH] [RFC] Haiku host support and general configure issues
Date: Sat, 28 Feb 2009 21:32:56 +0100 CET

> 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).

Note also some systems use -lpthreads and even others use a gcc flag -
pthread...

>
> Maybe that's why Haiku doesn't have -lpthread.

Most likely just to avoid spreading things outside of libroot.

Just like we don't have libm (it's in libroot, but noone ever checks
for it... you wonder what they use autoconf for then).

François.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]