From: Andrea Bolognani Date: Mon, 9 Oct 2023 21:17:10 +0000 (+0200) Subject: meson: Fix XDR check for GNU/Hurd X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=03785fef927bfe51259f3782d11960436802c70d;p=libvirt.git 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 Reviewed-by: Michal Privoznik --- diff --git a/meson.build b/meson.build index de23fbda1e..47748febb8 100644 --- a/meson.build +++ b/meson.build @@ -867,7 +867,7 @@ if not get_option('driver_remote').disabled() # use extra library as it's provided by libc directly. if host_machine.system() == 'windows' 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')) elif host_machine.system() in [ 'freebsd', 'darwin' ] xdr_dep = cc.find_library('c', required: get_option('driver_remote'))