aboutsummaryrefslogtreecommitdiff
path: root/trace
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-09-03 11:44:54 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2014-09-09 13:13:05 +0200
commitddbc41de380c24de823aa55cd46237be84ee0498 (patch)
treeeec4c07550efe48643dc555b0b92cf7d13b5f5e7 /trace
parenta85e130e015a673a824d68b94175e5985063a917 (diff)
downloadqemu-ddbc41de380c24de823aa55cd46237be84ee0498.zip
qemu-ddbc41de380c24de823aa55cd46237be84ee0498.tar.gz
qemu-ddbc41de380c24de823aa55cd46237be84ee0498.tar.bz2
trace: Only link generated-tracers.o with "simple" backend
In any other cases the object file is effectively empty, which is disliked by ranlib and nm on Mac OS X. Reported-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'trace')
-rw-r--r--trace/Makefile.objs3
1 files changed, 1 insertions, 2 deletions
diff --git a/trace/Makefile.objs b/trace/Makefile.objs
index 387f191..46de95c 100644
--- a/trace/Makefile.objs
+++ b/trace/Makefile.objs
@@ -140,8 +140,7 @@ $(obj)/generated-tcg-tracers.h-timestamp: $(SRC_PATH)/trace-events $(BUILD_DIR)/
######################################################################
# Backend code
-util-obj-$(CONFIG_TRACE_SIMPLE) += simple.o
+util-obj-$(CONFIG_TRACE_SIMPLE) += simple.o generated-tracers.o
util-obj-$(CONFIG_TRACE_FTRACE) += ftrace.o
util-obj-$(CONFIG_TRACE_UST) += generated-ust.o
util-obj-y += control.o
-util-obj-y += generated-tracers.o