qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 4/4] fix compilation when reconfiguring without dtrace backend
@ 2011-05-02  7:54 Paolo Bonzini
  2011-05-08 11:15 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Bonzini @ 2011-05-02  7:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

If QEMU is configured with the dtrace backend, then built, then
reconfigured without, the build fails.

The culprit is the trace-dtrace.h dependency that many files will
have.  Due to this dependency, make will attempt to rebuild
trace-dtrace.dtrace.  This is the step that fails.  Fix by wrapping
the dtrace rules with ifeq/endif.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-trivial@nongnu.org
---
 Makefile.objs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Makefile.objs b/Makefile.objs
index 0ba989f..e4e538a 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -326,6 +326,7 @@ trace.c-timestamp: $(SRC_PATH)/trace-events config-host.mak
 
 trace.o: trace.c $(GENERATED_HEADERS)
 
+ifeq ($(TRACE_BACKEND),dtrace)
 trace-dtrace.h: trace-dtrace.dtrace
 	$(call quiet-command,dtrace -o $@ -h -s $<, "  GEN   trace-dtrace.h")
 
@@ -339,6 +340,7 @@ trace-dtrace.dtrace-timestamp: $(SRC_PATH)/trace-events config-host.mak
 
 trace-dtrace.o: trace-dtrace.dtrace $(GENERATED_HEADERS)
 	$(call quiet-command,dtrace -o $@ -G -s $<, "  GEN trace-dtrace.o")
+endif
 
 simpletrace.o: simpletrace.c $(GENERATED_HEADERS)
 
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-09  9:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-02  7:54 [Qemu-devel] [PATCH 4/4] fix compilation when reconfiguring without dtrace backend Paolo Bonzini
2011-05-08 11:15 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
2011-05-09  6:53   ` Paolo Bonzini
2011-05-09  8:34     ` Stefan Hajnoczi
2011-05-09  8:42       ` Paolo Bonzini
2011-05-09  9:06         ` Stefan Hajnoczi

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).