Skip to content
Snippets Groups Projects
Commit c138156b authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

meson: fix libqos linking


Add genh to the sources to avoid race conditions between QAPI
file generation and libqos compilation.

Make the name_suffix .fa for consistency with other link_whole
static libraries and to work around a Meson issue where
lots of linker flags are placed between -Wl,--start-group and
-Wl,--end-group and this breaks the fork-fuzz.ld linker script.

Reported-by: default avatarClaudio Fontana <cfontana@suse.de>
Reported-by: default avatarAlexander Bulekov <alxndr@bu.edu>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 8d60f377
No related branches found
No related tags found
No related merge requests found
libqos = static_library('qos',
files('../libqtest.c',
libqos_srcs = files('../libqtest.c',
'qgraph.c',
'qos_external.c',
'pci.c',
......@@ -52,6 +51,10 @@ libqos = static_library('qos',
'arm-xilinx-zynq-a9-machine.c',
'ppc64_pseries-machine.c',
'x86_64_pc-machine.c',
), build_by_default: false)
)
libqos = static_library('qos', libqos_srcs + genh,
name_suffix: 'fa',
build_by_default: false)
qos = declare_dependency(link_whole: libqos)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment