| # Modules need more symbols than just those in plugins/qemu-plugins.symbols |
| qemu_plugins_symbols_list = configure_file( |
| input: files('qemu-plugins.symbols'), |
| output: 'qemu-plugins-ld64.symbols', |
| command: ['sed', '-ne', 's/^[[:space:]]*\\(qemu_.*\\);/_\\1/p', '@INPUT@']) |
| plugin_ldflags = ['-Wl,-exported_symbols_list,plugins/qemu-plugins-ld64.symbols'] |
| plugin_ldflags = ['-Xlinker', '--dynamic-list=' + (meson.project_source_root() / 'plugins/qemu-plugins.symbols')] |
| specific_ss.add(when: 'CONFIG_PLUGIN', if_true: [files( |
| ), declare_dependency(link_args: plugin_ldflags)]) |