diff --git a/Makefile b/Makefile index a9e851f75..633774e2d 100644 --- a/Makefile +++ b/Makefile @@ -206,7 +206,9 @@ qemu-img$(EXESUF): qemu-img.o qemu-tool.o osdep.o $(BLOCK_OBJS) qemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o osdep.o $(BLOCK_OBJS) -qemu-img$(EXESUF) qemu-nbd$(EXESUF): LIBS += -lz +qemu-io$(EXESUF): qemu-io.o qemu-tool.o osdep.o cmd.o $(BLOCK_OBJS) + +qemu-img$(EXESUF) qemu-nbd$(EXESUF) qemu-io$(EXESUF): LIBS += -lz clean: # avoid old build problems by removing potentially incorrect old files diff --git a/configure b/configure index e97483445..be8e38d5e 100755 --- a/configure +++ b/configure @@ -1551,7 +1551,7 @@ esac tools= if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then - tools="qemu-img\$(EXESUF) $tools" + tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools" if [ "$linux" = "yes" ] ; then tools="qemu-nbd\$(EXESUF) $tools" fi