From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3z1t-0002Dt-A6 for qemu-devel@nongnu.org; Sat, 22 Nov 2008 15:24:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3z1r-0002DZ-GC for qemu-devel@nongnu.org; Sat, 22 Nov 2008 15:24:31 -0500 Received: from [199.232.76.173] (port=43935 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3z1r-0002DS-Az for qemu-devel@nongnu.org; Sat, 22 Nov 2008 15:24:31 -0500 Received: from savannah.gnu.org ([199.232.41.3]:45038 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L3z1r-0007Do-Gw for qemu-devel@nongnu.org; Sat, 22 Nov 2008 15:24:31 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1L3z1q-0003Ox-FK for qemu-devel@nongnu.org; Sat, 22 Nov 2008 20:24:30 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1L3z1q-0003Or-1K for qemu-devel@nongnu.org; Sat, 22 Nov 2008 20:24:30 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sat, 22 Nov 2008 20:24:30 +0000 Subject: [Qemu-devel] [5776] Fix some compile and linking issues on NetBSD. 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 Revision: 5776 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5776 Author: blueswir1 Date: 2008-11-22 20:24:29 +0000 (Sat, 22 Nov 2008) Log Message: ----------- Fix some compile and linking issues on NetBSD. - adapt configure to link against -lrt to fix aio linking errors - adapt configure to link against -lossaudio to fix oss linking errors Signed-off-by: Christoph Egger Modified Paths: -------------- trunk/configure Modified: trunk/configure =================================================================== --- trunk/configure 2008-11-22 20:17:37 UTC (rev 5775) +++ trunk/configure 2008-11-22 20:24:29 UTC (rev 5776) @@ -148,6 +148,7 @@ bsd="yes" audio_drv_list="oss" audio_possible_drivers="oss sdl esd pa" +aiolib="-lpthread" if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then kqemu="yes" fi @@ -156,6 +157,8 @@ bsd="yes" audio_drv_list="oss" audio_possible_drivers="oss sdl esd" +oss_lib="-lossaudio" +aio_lib="-lrt -lpthread" ;; OpenBSD) bsd="yes" @@ -163,6 +166,7 @@ audio_drv_list="oss" audio_possible_drivers="oss sdl esd" oss_lib="-lossaudio" +aio_lib="-lpthread" ;; Darwin) bsd="yes" @@ -173,6 +177,7 @@ audio_possible_drivers="coreaudio sdl fmod" OS_CFLAGS="-mdynamic-no-pic" OS_LDFLAGS="-framework CoreFoundation -framework IOKit" +aio_lib="-lpthread" ;; SunOS) solaris="yes" @@ -522,7 +527,7 @@ if [ "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then AIOLIBS= elif [ "$bsd" = "yes" ]; then - AIOLIBS="-lpthread" + AIOLIBS="$aio_lib" else # Some Linux architectures (e.g. s390) don't imply -lpthread automatically. AIOLIBS="-lrt -lpthread"