[libvirt PATCH v2] meson: Fix build with -Dtest_coverage=true
Pavel Hrdina
phrdina at redhat.com
Tue Jan 19 15:01:23 UTC 2021
On Tue, Jan 19, 2021 at 03:31:56PM +0100, Jiri Denemark wrote:
> As can be seen in commit 8a62a1592ae00eab4eb153c02661e56b9d8d9032 (from
> autoconf era), the coverage flags have to be used also when linking
> objects. However, this was not reflected when we switched to meson.
>
> Without this patch linking fails with undefined references to various
> __gcov_* symbols.
>
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
> tests/meson.build | 8 ++++----
> tools/nss/meson.build | 2 ++
> tools/wireshark/src/meson.build | 3 +++
> 3 files changed, 9 insertions(+), 4 deletions(-)
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210119/60d1dca7/attachment-0001.sig>
More information about the libvir-list
mailing list