From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdVqB-0005pZ-O1 for qemu-devel@nongnu.org; Sat, 28 Feb 2009 15:31:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdVq9-0005nm-Cy for qemu-devel@nongnu.org; Sat, 28 Feb 2009 15:31:18 -0500 Received: from [199.232.76.173] (port=48751 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdVq9-0005na-0h for qemu-devel@nongnu.org; Sat, 28 Feb 2009 15:31:17 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]:43177) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LdVq8-0004bR-8X for qemu-devel@nongnu.org; Sat, 28 Feb 2009 15:31:16 -0500 In-Reply-To: <20090228202613.GI20640@shareable.org> Subject: Re: [Qemu-devel] Re: [PATCH] [RFC] Haiku host support and general =?utf-8?q?configure?= issues From: "=?utf-8?q?Fran=C3=A7ois?= Revol" Date: Sat, 28 Feb 2009 21:32:56 +0100 CET Message-Id: <18264917482-BeMail@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: haikuports-devs@ports.haiku-files.org, qemu-devel@nongnu.org > Andreas F=C3=A4rber wrote: > > Hm, the so-called AIO check is rather a pthreads check: > > > > #include > > int main(void) { pthread=5Fmutex=5Ft lock; return 0; } > > > > If that compiles, a working -lpthread is assumed. It's buggy in > > itself > > because it first sets AIOLIBS=3D"", then compiles with unchanged > > empty > > $AIOLIBS and then sets AIOLIBS=3D"-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=C3=A7ois.