]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: use host module suffix when loading drivers
authorScott Shambarger <scott-libvirt@shambarger.net>
Tue, 25 Aug 2020 23:47:07 +0000 (16:47 -0700)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 26 Aug 2020 08:30:18 +0000 (10:30 +0200)
commit89f5b90a5ff479a9fa87e8e6be3784068f2127bf
treefb43a27f282a13ae00105c0c0270f3588654f89f
parent46d88d8dba56c1e3e11cc5adb835d4ce9d627e94
util: use host module suffix when loading drivers

Driver module loaders current hardcode ".so" as the file
extension.  On MacOS, meson uses ".dylib" as a module file extension.
This patch adds VIR_FILE_MODULE_EXT to virfile.h defined as the
hosts module extension, and updates driver module loaders to make
use of it.

Signed-off-by: Scott Shambarger <scott-libvirt@shambarger.net>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/driver.c
src/locking/lock_manager.c
src/storage/storage_backend.c
src/util/virfile.h
src/util/virstoragefilebackend.c