summaryrefslogtreecommitdiffstats
path: root/Makefile.target
diff options
context:
space:
mode:
authoraliguori2008-09-11 20:00:19 +0200
committeraliguori2008-09-11 20:00:19 +0200
commita3392f9b100e6b63616922a8b30ad9643c62785a (patch)
tree00577aa3082c3742a4a4e8917909ab354c84572e /Makefile.target
parentWrite zeros to high bits of y, based on patch by Vince Weaver (diff)
downloadqemu-a3392f9b100e6b63616922a8b30ad9643c62785a.tar.gz
qemu-a3392f9b100e6b63616922a8b30ad9643c62785a.tar.xz
qemu-a3392f9b100e6b63616922a8b30ad9643c62785a.zip
Only build compatfd when using AIO and make sure to always init AIO
OpenBSD doesn't use AIO so don't try to build compatfd when not using AIO. Also make sure to call qemu_aio_init() from bdrv_init. Everything that uses bdrv calls bdrv_init so it makes sense to init aio from there instead of in every single tool. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5197 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile.target')
-rw-r--r--Makefile.target6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.target b/Makefile.target
index dd511ef9df..d02d896afe 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -476,7 +476,11 @@ OBJS=vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o net-checksum.o
ifdef CONFIG_WIN32
OBJS+=block-raw-win32.o
else
-OBJS+=block-raw-posix.o compatfd.o
+OBJS+=block-raw-posix.o
+endif
+
+ifdef CONFIG_AIO
+OBJS+=compatfd.o
endif
LIBS+=-lz