diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-27 15:48:31 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-29 09:33:10 +0200 |
commit | 4c545a05abe8859c6e0f64079abe6495fd58d7a8 (patch) | |
tree | 45ca41b89ddfff265dd76af1feb869799f555818 /tcg | |
parent | f0df613b98901a2a9184a76f332a853391a73fa8 (diff) | |
download | qemu-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.build | 4 |
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()) |