]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests/meson: fix mock library link on MacOS
authorScott Shambarger <scott-libvirt@shambarger.net>
Fri, 28 Aug 2020 19:35:01 +0000 (12:35 -0700)
committerJán Tomko <jtomko@redhat.com>
Tue, 1 Sep 2020 21:42:30 +0000 (23:42 +0200)
MacOS can not pre-load modules, so mock libraries must be built
as shared libraries (without asneeded striping, and undefined
symbols allowed).

Signed-off-by: Scott Shambarger <scott-libvirt@shambarger.net>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
tests/meson.build

index b5f6e2267aaffaeaee06735bf58020472f5d141e..d7476452ba7f5791ada2970bdffb806f40f2330f 100644 (file)
@@ -120,9 +120,13 @@ if conf.has('WITH_SECDRIVER_SELINUX')
 endif
 
 foreach mock : mock_libs
-  shared_module(
+  shared_library(
     mock['name'],
     mock.get('sources', [ '@0@.c'.format(mock['name']) ]),
+    override_options: [
+     'b_asneeded=false',
+     'b_lundef=false',
+    ],
     dependencies: [
       tests_dep,
       mock.get('deps', []),