mirror of https://github.com/xemu-project/xemu.git
buildsys: Fix building without plugins on Darwin
Since commit0082475e26
the plugin symbol list is unconditionally added to the linker flags, leading to a build failure: Undefined symbols for architecture arm64: "_qemu_plugin_entry_code", referenced from: <initial-undefines> ... ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Fix by restricting the whole meson file to the --enable-plugins configure argument. Fixes:0082475e26
("meson: merge plugin_ldflags into emulator_link_args") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2476 Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Acked-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240813112457.92560-1-philmd@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240813202329.1237572-9-alex.bennee@linaro.org>
This commit is contained in:
parent
cf584a908a
commit
20fdd01e51
|
@ -1,3 +1,7 @@
|
||||||
|
if not get_option('plugins')
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
# Modules need more symbols than just those in plugins/qemu-plugins.symbols
|
# Modules need more symbols than just those in plugins/qemu-plugins.symbols
|
||||||
if not enable_modules
|
if not enable_modules
|
||||||
if host_os == 'darwin'
|
if host_os == 'darwin'
|
||||||
|
@ -12,8 +16,7 @@ if not enable_modules
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('plugins')
|
if host_os == 'windows'
|
||||||
if host_os == 'windows'
|
|
||||||
dlltool = find_program('dlltool', required: true)
|
dlltool = find_program('dlltool', required: true)
|
||||||
|
|
||||||
# Generate a .lib file for plugins to link against.
|
# Generate a .lib file for plugins to link against.
|
||||||
|
@ -31,10 +34,9 @@ if get_option('plugins')
|
||||||
command: [dlltool, '--input-def', '@INPUT@',
|
command: [dlltool, '--input-def', '@INPUT@',
|
||||||
'--output-delaylib', '@OUTPUT@', '--dllname', 'qemu.exe']
|
'--output-delaylib', '@OUTPUT@', '--dllname', 'qemu.exe']
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
specific_ss.add(files(
|
specific_ss.add(files(
|
||||||
'loader.c',
|
'loader.c',
|
||||||
'core.c',
|
'core.c',
|
||||||
'api.c',
|
'api.c',
|
||||||
))
|
))
|
||||||
endif
|
|
||||||
|
|
Loading…
Reference in New Issue