Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HNcRK-0008W5-Ss for qemu-devel@nongnu.org; Sat, 03 Mar 2007 17:10:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HNcRK-0008VB-80 for qemu-devel@nongnu.org; Sat, 03 Mar 2007 17:10:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNcRJ-0008V3-N8 for qemu-devel@nongnu.org; Sat, 03 Mar 2007 17:10:53 -0500 Received: from phoenix.bawue.net ([193.7.176.60] helo=mail.bawue.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HNcRJ-0008GQ-3X for qemu-devel@nongnu.org; Sat, 03 Mar 2007 17:10:53 -0500 Date: Sat, 3 Mar 2007 22:12:59 +0000 Subject: Re: [Qemu-devel] FreeBSD Support Message-ID: <20070303221259.GB27476@networkno.de> References: <200702161402.23660.cwolsen@domainatlantic.com> <200702192110.52907.cwolsen@domainatlantic.com> <200702200241.26220.paul@codesourcery.com> <200702192226.45410.cwolsen@domainatlantic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: From: Thiemo Seufer Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: andrzej zaborowski Cc: qemu-devel@nongnu.org andrzej zaborowski wrote: > Hi, > > On 20/02/07, Christopher Olsen wrote: > >Ok FreeBSD Support round one.. > > > >Be gentle this is my first attempt at working with the rest of this > >community.. > > > >Files it modifies and the reasons are as follows > > > >configure - Adds HOST_FREEBSD type to alter included libraries FreeBSD does > >not need -ltr > >Makefile.target - Once again uses HOST_FREEBSD to avoid including -ltr > > See http://lists.gnu.org/archive/html/qemu-devel/2006-11/msg00166.html > - I believe this is a more appropriate way to select -lrt. The solaris part there looked a bit inconsistent, is the appended version ok? Thiemo Index: qemu-work/Makefile =================================================================== --- qemu-work.orig/Makefile 2007-02-11 16:10:55.000000000 +0000 +++ qemu-work/Makefile 2007-03-02 21:07:26.000000000 +0000 @@ -24,11 +24,7 @@ DOCS= endif -ifndef CONFIG_DARWIN -ifndef CONFIG_WIN32 -LIBS+=-lrt -endif -endif +LIBS+=$(AIOLIBS) all: $(TOOLS) $(DOCS) recurse-all Index: qemu-work/Makefile.target =================================================================== --- qemu-work.orig/Makefile.target 2007-03-02 20:57:01.000000000 +0000 +++ qemu-work/Makefile.target 2007-03-02 21:01:22.000000000 +0000 @@ -436,6 +436,7 @@ endif VL_LDFLAGS= +VL_LIBS=$(AIOLIBS) # specific flags are needed for non soft mmu emulator ifdef CONFIG_STATIC VL_LDFLAGS+=-static @@ -446,7 +447,7 @@ ifndef CONFIG_DARWIN ifndef CONFIG_WIN32 ifndef CONFIG_SOLARIS -VL_LIBS=-lutil -lrt +VL_LIBS+=-lutil endif endif endif Index: qemu-work/configure =================================================================== --- qemu-work.orig/configure 2007-03-02 20:57:00.000000000 +0000 +++ qemu-work/configure 2007-03-02 21:07:10.000000000 +0000 @@ -159,6 +159,12 @@ fi fi +if [ "$bsd" = "yes" -o "$darwin" = "yes" -o "$solaris" = "yes" -o "$mingw32" = "yes" ] ; then + AIOLIBS= +else + AIOLIBS="-lrt" +fi + # find source path source_path=`dirname "$0"` if [ -z "$source_path" ]; then @@ -653,6 +659,7 @@ echo "CFLAGS=$CFLAGS" >> $config_mak echo "LDFLAGS=$LDFLAGS" >> $config_mak echo "EXESUF=$EXESUF" >> $config_mak +echo "AIOLIBS=$AIOLIBS" >> $config_mak if test "$cpu" = "i386" ; then echo "ARCH=i386" >> $config_mak echo "#define HOST_I386 1" >> $config_h