@@ -15,7 +15,6 @@ stub-obj-y += migr-blocker.o
stub-obj-y += mon-is-qmp.o
stub-obj-y += mon-printf.o
stub-obj-y += mon-print-filename.o
-stub-obj-y += mon-protocol-event.o
stub-obj-y += mon-set-error.o
stub-obj-y += pci-drive-hot-add.o
stub-obj-y += reset.o
@@ -134,7 +134,8 @@ tests/test-qdev-global-props$(EXESUF): tests/test-qdev-global-props.o \
hw/core/irq.o \
qom/object.o qom/container.o qom/qom-qobject.o \
$(test-qapi-obj-y) \
- libqemuutil.a libqemustub.a
+ libqemuutil.a libqemustub.a \
+ stubs/mon-protocol-event.o
tests/test-qapi-types.c tests/test-qapi-types.h :\
$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py
Now block layer do not use this symbol now, so qemg-img, qemu-io and qemu-nbd do not link with this file any more. The test program tests/test-qdev-global-props still need it, so add this obj in rule of test/Makefile, and keeps the c file now. Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> --- stubs/Makefile.objs | 1 - tests/Makefile | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-)