[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PATCH 4/4] fix compilation when reconfiguring without dt

From: Paolo Bonzini
Subject: [Qemu-trivial] [PATCH 4/4] fix compilation when reconfiguring without dtrace backend
Date: Mon, 2 May 2011 09:54:06 +0200

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 <address@hidden>
Cc: address@hidden
 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 
 trace-dtrace.o: trace-dtrace.dtrace $(GENERATED_HEADERS)
        $(call quiet-command,dtrace -o $@ -G -s $<, "  GEN trace-dtrace.o")
 simpletrace.o: simpletrace.c $(GENERATED_HEADERS)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]