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 <pbonz...@redhat.com> Cc: qemu-triv...@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