[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] FreeBSD Support
From: |
Thiemo Seufer |
Subject: |
Re: [Qemu-devel] FreeBSD Support |
Date: |
Sat, 3 Mar 2007 22:12:59 +0000 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
andrzej zaborowski wrote:
> Hi,
>
> On 20/02/07, Christopher Olsen <address@hidden> 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
- Re: [Qemu-devel] FreeBSD Support,
Thiemo Seufer <=