From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGnxZ-000357-LY for qemu-devel@nongnu.org; Mon, 02 May 2011 03:54:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGnxY-0003zn-Ta for qemu-devel@nongnu.org; Mon, 02 May 2011 03:54:25 -0400 Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 2 May 2011 09:54:06 +0200 Message-Id: <1304322846-24376-4-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 4/4] fix compilation when reconfiguring without dtrace backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org 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 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