[PATCH v2] util: use host module suffix when loading drivers

Pavel Hrdina phrdina at redhat.com
Wed Aug 26 08:34:10 UTC 2020


On Tue, Aug 25, 2020 at 04:47:07PM -0700, Scott Shambarger wrote:
> 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 at shambarger.net>
> ---
>  src/driver.c                     | 2 +-
>  src/locking/lock_manager.c       | 2 +-
>  src/storage/storage_backend.c    | 2 +-
>  src/util/virfile.h               | 6 ++++++
>  src/util/virstoragefilebackend.c | 2 +-
>  5 files changed, 10 insertions(+), 4 deletions(-)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>

And pushed.
-------------- 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/20200826/52501c46/attachment-0001.sig>


More information about the libvir-list mailing list