qom: Make info qom-tree sort children more efficiently
[qemu/armbru.git] / plugins / Makefile.objs
blob6f14d91ccb9099383ccb4765678de24f7ffa05e2
2 # Plugin Support
5 obj-y += loader.o
6 obj-y += core.o
7 obj-y += api.o
9 # Abuse -libs suffix to only link with --dynamic-list/-exported_symbols_list
10 # when the final binary includes the plugin object.
12 # Note that simply setting LDFLAGS is not enough: we build binaries that
13 # never link plugin.o, and the linker might fail (at least ld64 does)
14 # if the symbols in the list are not in the output binary.
15 ifdef CONFIG_HAS_LD_DYNAMIC_LIST
16 api.o-libs := -Wl,--dynamic-list=$(BUILD_DIR)/qemu-plugins-ld.symbols
17 else
18 ifdef CONFIG_HAS_LD_EXPORTED_SYMBOLS_LIST
19 api.o-libs := -Wl,-exported_symbols_list,$(BUILD_DIR)/qemu-plugins-ld64.symbols
20 endif
21 endif