mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-14 15:14:42 -05:00
meson: Define qemu_moddir correctly
We can't hardcode /usr here, because the user might have
configured whatever arbitrary prefix.
Everything appeared to be okay because when joining paths
Meson will drop any component that precedes an absolute path
and libdir happens to be absolute, but we should still do
things correctly instead of relying on this.
Fixes: 2ad009eadd
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
+1
-1
@@ -1681,7 +1681,7 @@ if not get_option('driver_qemu').disabled()
|
||||
|
||||
qemu_moddir = get_option('qemu_moddir')
|
||||
if qemu_moddir == ''
|
||||
qemu_moddir = '/usr' / libdir / 'qemu'
|
||||
qemu_moddir = libdir / 'qemu'
|
||||
endif
|
||||
conf.set_quoted('QEMU_MODDIR', qemu_moddir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user