4789f9d3a1
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1972 Cross compile gcc is more picky about argument order than msys. Changed the meson command to take the (now renamed) libqemu_plugin_api.a as a lib, rather than an object. This puts it in the right place on both native and cross compile gcc commands Reenable plugins on crossbuilds Signed-off-by: Greg Manning <gmanning@rapitasystems.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20231109124326.21106-2-gmanning@rapitasystems.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20231120150833.2552739-5-alex.bennee@linaro.org>
23 lines
770 B
Meson
23 lines
770 B
Meson
t = []
|
|
if get_option('plugins')
|
|
foreach i : ['bb', 'empty', 'insn', 'mem', 'syscall']
|
|
if targetos == 'windows'
|
|
t += shared_module(i, files(i + '.c') + '../../contrib/plugins/win32_linker.c',
|
|
include_directories: '../../include/qemu',
|
|
link_depends: [win32_qemu_plugin_api_lib],
|
|
link_args: ['-Lplugins', '-lqemu_plugin_api'],
|
|
dependencies: glib)
|
|
|
|
else
|
|
t += shared_module(i, files(i + '.c'),
|
|
include_directories: '../../include/qemu',
|
|
dependencies: glib)
|
|
endif
|
|
endforeach
|
|
endif
|
|
if t.length() > 0
|
|
alias_target('test-plugins', t)
|
|
else
|
|
run_target('test-plugins', command: find_program('true'))
|
|
endif
|