mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
meson: Fix XDR check for GNU/Hurd
The situation is the same as Linux: since glibc no longer includes the RPC functionality, libtirpc must be used to complement it. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
d3bdfa0911
commit
03785fef92
@ -867,7 +867,7 @@ if not get_option('driver_remote').disabled()
|
|||||||
# use extra library as it's provided by libc directly.
|
# use extra library as it's provided by libc directly.
|
||||||
if host_machine.system() == 'windows'
|
if host_machine.system() == 'windows'
|
||||||
xdr_dep = cc.find_library('portablexdr', required: get_option('driver_remote'))
|
xdr_dep = cc.find_library('portablexdr', required: get_option('driver_remote'))
|
||||||
elif host_machine.system() == 'linux'
|
elif host_machine.system() in [ 'linux', 'gnu' ]
|
||||||
xdr_dep = dependency('libtirpc', required: get_option('driver_remote'))
|
xdr_dep = dependency('libtirpc', required: get_option('driver_remote'))
|
||||||
elif host_machine.system() in [ 'freebsd', 'darwin' ]
|
elif host_machine.system() in [ 'freebsd', 'darwin' ]
|
||||||
xdr_dep = cc.find_library('c', required: get_option('driver_remote'))
|
xdr_dep = cc.find_library('c', required: get_option('driver_remote'))
|
||||||
|
Loading…
Reference in New Issue
Block a user