]> xenbits.xensource.com Git - libvirt.git/commitdiff
meson: numactl_dep switch to dependency()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 23 Mar 2023 08:21:17 +0000 (09:21 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Jun 2023 10:20:55 +0000 (12:20 +0200)
The pkg-config file to libnuma was introduced in 2.0.12 release
(though the comment mistakenly claims 2.0.14 version). Every
supported distro ships at least this version, and thus we can
switch meson detection to dependency().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
meson.build

index 5715eacf60ca9c24ddedf55a72a043784adfe62f..53d369557de2767616ee89dbae427529de1bc060 100644 (file)
@@ -1095,8 +1095,7 @@ else
   intl_dep = dependency('', required: false)
 endif
 
-# FIXME rewrite to use dependency() once we can use 2.0.14
-numactl_dep = cc.find_library('numa', required: get_option('numactl'))
+numactl_dep = dependency('numa', required: get_option('numactl'))
 if numactl_dep.found()
   conf.set('WITH_NUMACTL', 1)
   if cc.has_function('numa_set_preferred_many', dependencies: numactl_dep)