mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
26fffe29c0
Signed-off-by: Emilio G. Cota <cota@braap.org> [AJB: moved into plugins] Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
22 lines
647 B
Makefile
22 lines
647 B
Makefile
#
|
|
# Plugin Support
|
|
#
|
|
|
|
obj-y += loader.o
|
|
obj-y += core.o
|
|
obj-y += api.o
|
|
|
|
# Abuse -libs suffix to only link with --dynamic-list/-exported_symbols_list
|
|
# when the final binary includes the plugin object.
|
|
#
|
|
# Note that simply setting LDFLAGS is not enough: we build binaries that
|
|
# never link plugin.o, and the linker might fail (at least ld64 does)
|
|
# if the symbols in the list are not in the output binary.
|
|
ifdef CONFIG_HAS_LD_DYNAMIC_LIST
|
|
api.o-libs := -Wl,--dynamic-list=$(BUILD_DIR)/qemu-plugins-ld.symbols
|
|
else
|
|
ifdef CONFIG_HAS_LD_EXPORTED_SYMBOLS_LIST
|
|
api.o-libs := -Wl,-exported_symbols_list,$(BUILD_DIR)/qemu-plugins-ld64.symbols
|
|
endif
|
|
endif
|