From fba90ac1d614c333c6a15c39cac555a12a04cee1 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 1 May 2013 18:30:15 +0200 Subject: [PATCH] win32: fix compilation again While commit c02817e5bfbb27955cac970019e6670dc427bc41 fixed compilation without an installed libtool, moving the dependencies to rules.mak does not work because the version-*-y variables are not defined yet. Building in a clean tree thus fails. Revert the commit and remove the dummy /bin/false assignment to LIBTOOL. This makes the build work, at the price of slightly worse errors when there are Makefile bugs. Signed-off-by: Paolo Bonzini Message-id: 1367425815-15083-1-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori --- Makefile | 1 + rules.mak | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f91f3b0a11..7dc02042be 100644 --- a/Makefile +++ b/Makefile @@ -172,6 +172,7 @@ version.lo: $(SRC_PATH)/version.rc config-host.h version-obj-$(CONFIG_WIN32) += version.o version-lobj-$(CONFIG_WIN32) += version.lo +Makefile: $(version-obj-y) $(version-lobj-y) ###################################################################### # Build libraries diff --git a/rules.mak b/rules.mak index b21383beba..44997458da 100644 --- a/rules.mak +++ b/rules.mak @@ -22,15 +22,11 @@ QEMU_INCLUDES += -I$(/dev/null 2>&1 && echo OK), $2, $3) -VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi %.sh +VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi %.sh %.rc set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1))) # find-in-path