summaryrefslogtreecommitdiffstats
path: root/Makefile.target
diff options
context:
space:
mode:
authorXu, Anthony2017-04-04 23:39:39 +0200
committerStefan Hajnoczi2017-04-21 11:45:35 +0200
commit3d1baccb08562e2893085f102c863507917c0453 (patch)
tree23419f483f05eb8218c4efbaa98d3d51ceb010be /Makefile.target
parentconfigure: eliminate Python dependency for --help (diff)
downloadqemu-3d1baccb08562e2893085f102c863507917c0453.tar.gz
qemu-3d1baccb08562e2893085f102c863507917c0453.tar.xz
qemu-3d1baccb08562e2893085f102c863507917c0453.zip
trace: Put all trace.o into libqemuutil.a
Currently all trace.o are linked into qemu-system, qemu-img, qemu-nbd, qemu-io etc., even the corresponding components are not included. Put all trace.o into libqemuutil.a that the linker would only pull in .o files containing symbols that are actually referenced by the program. Signed-off -by: Anthony Xu <anthony.xu@intel.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'Makefile.target')
-rw-r--r--Makefile.target5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile.target b/Makefile.target
index 7df2b8c149..e62021d5aa 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -188,8 +188,7 @@ dummy := $(call unnest-vars,.., \
qom-obj-y \
io-obj-y \
common-obj-y \
- common-obj-m \
- trace-obj-y)
+ common-obj-m)
target-obj-y := $(target-obj-y-save)
all-obj-y += $(common-obj-y)
all-obj-y += $(target-obj-y)
@@ -201,7 +200,7 @@ all-obj-$(CONFIG_SOFTMMU) += $(io-obj-y)
$(QEMU_PROG_BUILD): config-devices.mak
-COMMON_LDADDS = $(trace-obj-y) ../libqemuutil.a ../libqemustub.a
+COMMON_LDADDS = ../libqemuutil.a ../libqemustub.a
# build either PROG or PROGW
$(QEMU_PROG_BUILD): $(all-obj-y) $(COMMON_LDADDS)