[libvirt PATCH v2 5/7] tests: openvzutilstest: Remove duplicate linking with libvirt_openvz.a

Tim Wiederhake twiederh at redhat.com
Thu May 6 15:08:36 UTC 2021


"openvzutilstest" links, amongst others, against "libvirt_openvz.a" and
"libvirt.so". The latter also links against "libvirt_openvz.a", leading
to a One-Definition-Rule violation for "openvzLocateConfFile" in
"openvz_conf.c".

Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
---
 tests/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/meson.build b/tests/meson.build
index 9900983d0c..3c73cbe3b5 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -430,7 +430,7 @@ endif
 
 if conf.has('WITH_OPENVZ')
   tests += [
-    { 'name': 'openvzutilstest', 'link_with': [ openvz_lib ] },
+    { 'name': 'openvzutilstest' },
   ]
 endif
 
-- 
2.26.3




More information about the libvir-list mailing list