On 21/12/23 18:19, Paolo Bonzini wrote:
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> --- meson.build | 97 +++++++++++++++++++++++++++-------------------------- 1 file changed, 50 insertions(+), 47 deletions(-
[...]
-elif targetos == 'openbsd' - if get_option('tcg').allowed() and target_dirs.length() > 0 - # Disable OpenBSD W^X if available - emulator_link_args = cc.get_supported_link_arguments('-Wl,-z,wxneeded') - endif -endif - # Target-specific configuration of accelerators accelerators = [] if get_option('kvm').allowed() and targetos == 'linux' @@ -716,6 +669,56 @@ if 'CONFIG_WHPX' not in accelerators and get_option('whpx').enabled() error('WHPX not available on this platform') endif
[*]
+##################################### +# Host-specific libraries and flags # +##################################### + +libm = cc.find_library('m', required: false) +threads = dependency('threads') +util = cc.find_library('util', required: false) +winmm = [] +socket = [] +version_res = [] +coref = [] +iokit = [] +emulator_link_args = []
This ...
+nvmm =not_found +hvf = not_found
... could be moved at [*] with 'accelerators'. (missing space around nvmm) Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
+midl = not_found +widl = not_found +pathcch = not_found +host_dsosuf = '.so' +if targetos == 'windows' + midl = find_program('midl', required: false) + widl = find_program('widl', required: false) + pathcch = cc.find_library('pathcch') + socket = cc.find_library('ws2_32') + winmm = cc.find_library('winmm')
[...]