Received: from eggs.gnu.org ([2001:4830:134:3::10]:33969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAS4V-0004wG-OE for qemu-devel@nongnu.org; Fri, 16 Aug 2013 18:00:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAS4Q-0000bS-1M for qemu-devel@nongnu.org; Fri, 16 Aug 2013 18:00:39 -0400 Received: from mail-ie0-x22d.google.com ([2607:f8b0:4001:c03::22d]:49507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAS0F-0007jg-4G for qemu-devel@nongnu.org; Fri, 16 Aug 2013 17:56:15 -0400 Received: by mail-ie0-f173.google.com with SMTP id k5so4325210iea.18 for ; Fri, 16 Aug 2013 14:56:14 -0700 (PDT) Sender: fluxion Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Roth In-Reply-To: <1376682713-18957-1-git-send-email-sw@weilnetz.de> References: <1376682713-18957-1-git-send-email-sw@weilnetz.de> Message-ID: <20130816215608.30766.96897@loki> Date: Fri, 16 Aug 2013 16:56:08 -0500 Subject: Re: [Qemu-devel] [PATCH] w32: Fix broken out-of-tree builds (missing version.o) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , qemu-devel Cc: Paolo Bonzini , Anthony Liguori Quoting Stefan Weil (2013-08-16 14:51:53) > Commit 0b516ef0dfad9a7b34c675c98e8ec92ab4d38466 added version.o to all > executables, but broke out-of-tree builds: for those builds the pattern > rule %.o: %.rc from rules.mak does not match, so version.o was no longer > built. > = > Adding explicit build rules fixes this. > = > Reported-by: Michael Roth > Signed-off-by: Stefan Weil Tested-by: Michael Roth > --- > = > Hello Michael, > = > thank you for the report and your hint for a possible fix. > This is still not the final solution which should build > version.o at link time, but it is a minimal fix for the > broken build. Sounds fine to me, thanks for the quick fix. > = > Regards, > Stefan > = > Makefile | 2 ++ > 1 file changed, 2 insertions(+) > = > diff --git a/Makefile b/Makefile > index 4d257f1..806946e 100644 > --- a/Makefile > +++ b/Makefile > @@ -168,7 +168,9 @@ recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES) > bt-host.o: QEMU_CFLAGS +=3D $(BLUEZ_CFLAGS) > = > $(BUILD_DIR)/version.o: $(SRC_PATH)/version.rc $(BUILD_DIR)/config-host.= h | $(BUILD_DIR)/version.lo > + $(call quiet-command,$(WINDRES) -I$(BUILD_DIR) -o $@ $<," RC = version.o") > $(BUILD_DIR)/version.lo: $(SRC_PATH)/version.rc $(BUILD_DIR)/config-host= .h > + $(call quiet-command,$(WINDRES) -I$(BUILD_DIR) -o $@ $<," RC = version.lo") > = > Makefile: $(version-obj-y) $(version-lobj-y) > = > -- = > 1.7.10.4