aboutsummaryrefslogtreecommitdiff
path: root/tcg
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 /tcg
parentf0df613b98901a2a9184a76f332a853391a73fa8 (diff)
downloadqemu-4c545a05abe8859c6e0f64079abe6495fd58d7a8.zip
qemu-4c545a05abe8859c6e0f64079abe6495fd58d7a8.tar.gz
qemu-4c545a05abe8859c6e0f64079abe6495fd58d7a8.tar.bz2
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 'tcg')
-rw-r--r--tcg/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/meson.build b/tcg/meson.build
index 0014dca..4be4a61 100644
--- a/tcg/meson.build
+++ b/tcg/meson.build
@@ -28,7 +28,7 @@ libtcg_user = static_library('tcg_user',
tcg_ss.sources() + genh,
name_suffix: 'fa',
c_args: '-DCONFIG_USER_ONLY',
- build_by_default: have_user)
+ build_by_default: false)
tcg_user = declare_dependency(link_with: libtcg_user,
dependencies: tcg_ss.dependencies())
@@ -38,7 +38,7 @@ libtcg_softmmu = static_library('tcg_softmmu',
tcg_ss.sources() + genh,
name_suffix: 'fa',
c_args: '-DCONFIG_SOFTMMU',
- build_by_default: have_system)
+ build_by_default: false)
tcg_softmmu = declare_dependency(link_with: libtcg_softmmu,
dependencies: tcg_ss.dependencies())