aboutsummaryrefslogtreecommitdiff
path: root/gdbstub
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-09-27 15:48:31 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-09-29 09:33:10 +0200
commit4c545a05abe8859c6e0f64079abe6495fd58d7a8 (patch)
tree45ca41b89ddfff265dd76af1feb869799f555818 /gdbstub
parentf0df613b98901a2a9184a76f332a853391a73fa8 (diff)
meson: clean up static_library keyword arguments
These are either built because they are dependencies of other targets, or not needed at all because they are used via extract_objects(). Mark them as "build_by_default: false"; if applicable, mark them as "fa" so that -Wl,--whole-archive does not interact with the linker script used for fuzzing. (The "fa" hack is brittle; updating to Meson 1.1 would allow using declare_dependency(objects: ...) instead). Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1044 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'gdbstub')
-rw-r--r--gdbstub/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbstub/meson.build b/gdbstub/meson.build
index 9500b9dc4e..a5a1f4e433 100644
--- a/gdbstub/meson.build
+++ b/gdbstub/meson.build
@@ -21,12 +21,12 @@ libgdb_user = static_library('gdb_user',
gdb_user_ss.sources() + genh,
name_suffix: 'fa',
c_args: '-DCONFIG_USER_ONLY',
- build_by_default: have_user)
+ build_by_default: false)
libgdb_softmmu = static_library('gdb_softmmu',
gdb_system_ss.sources() + genh,
name_suffix: 'fa',
- build_by_default: have_system)
+ build_by_default: false)
gdb_user = declare_dependency(link_whole: libgdb_user)
user_ss.add(gdb_user)