From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdVlN-0003PH-EU for qemu-devel@nongnu.org; Sat, 28 Feb 2009 15:26:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdVlL-0003Or-Pn for qemu-devel@nongnu.org; Sat, 28 Feb 2009 15:26:20 -0500 Received: from [199.232.76.173] (port=42559 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdVlL-0003Oi-Gl for qemu-devel@nongnu.org; Sat, 28 Feb 2009 15:26:19 -0500 Received: from mail2.shareable.org ([80.68.89.115]:55275) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LdVlL-000481-74 for qemu-devel@nongnu.org; Sat, 28 Feb 2009 15:26:19 -0500 Date: Sat, 28 Feb 2009 20:26:13 +0000 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: [PATCH] [RFC] Haiku host support and general configure issues Message-ID: <20090228202613.GI20640@shareable.org> References: <6011275057-BeMail@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: haikuports-devs@ports.haiku-files.org Andreas Färber wrote: > Hm, the so-called AIO check is rather a pthreads check: > > #include > 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