From: Fam Zheng Date: Wed, 3 Sep 2014 03:44:54 +0000 (+0800) Subject: trace: Only link generated-tracers.o with "simple" backend X-Git-Tag: v2.2.0-rc0~118^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddbc41de380c24de823aa55cd46237be84ee0498;p=thirdparty%2Fqemu.git 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 Tested-by: Peter Maydell Signed-off-by: Fam Zheng Signed-off-by: Paolo Bonzini --- diff --git a/trace/Makefile.objs b/trace/Makefile.objs index 387f191fd46..46de95c1a65 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