* [Qemu-devel] [PATCH] w32: Fix broken out-of-tree builds (missing version.o)
@ 2013-08-16 19:51 Stefan Weil
2013-08-16 21:56 ` Michael Roth
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2013-08-16 19:51 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Anthony Liguori, Michael Roth, Stefan Weil
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 <mdroth@linux.vnet.ibm.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
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.
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 += $(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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] w32: Fix broken out-of-tree builds (missing version.o)
2013-08-16 19:51 [Qemu-devel] [PATCH] w32: Fix broken out-of-tree builds (missing version.o) Stefan Weil
@ 2013-08-16 21:56 ` Michael Roth
0 siblings, 0 replies; 2+ messages in thread
From: Michael Roth @ 2013-08-16 21:56 UTC (permalink / raw)
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 <mdroth@linux.vnet.ibm.com>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
Tested-by: Michael Roth <mdroth@linux.vnet.ibm.com>
> ---
>
> 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 += $(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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-16 22:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-16 19:51 [Qemu-devel] [PATCH] w32: Fix broken out-of-tree builds (missing version.o) Stefan Weil
2013-08-16 21:56 ` Michael Roth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).