]> xenbits.xensource.com Git - libvirt.git/commitdiff
meson: Fix XDR check for GNU/Hurd
authorAndrea Bolognani <abologna@redhat.com>
Mon, 9 Oct 2023 21:17:10 +0000 (23:17 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 25 Oct 2023 10:19:32 +0000 (12:19 +0200)
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>
meson.build

index de23fbda1ea463a07cdb1c4081d9d2ee6f8a1ec4..47748febb809d17b0c2f2277aad812fdfee40f4c 100644 (file)
@@ -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'))