Merge tag 'pull-la-20220704' of https://gitlab.com/rth7680/qemu into staging
[qemu.git] / plugins / meson.build
1 plugin_ldflags = []
2 # Modules need more symbols than just those in plugins/qemu-plugins.symbols
3 if not enable_modules
4   if 'CONFIG_HAS_LD_DYNAMIC_LIST' in config_host
5     plugin_ldflags = ['-Wl,--dynamic-list=qemu-plugins-ld.symbols']
6   elif 'CONFIG_HAS_LD_EXPORTED_SYMBOLS_LIST' in config_host
7     plugin_ldflags = ['-Wl,-exported_symbols_list,qemu-plugins-ld64.symbols']
8   endif
9 endif
10
11 specific_ss.add(when: 'CONFIG_PLUGIN', if_true: [files(
12   'loader.c',
13   'core.c',
14   'api.c',
15 ), declare_dependency(link_args: plugin_ldflags)])