From dffeef89efc2ed1668cb485d6c3e67ef27b824e8 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 23 Mar 2023 09:13:52 +0100 Subject: [PATCH] meson: attr_dep switch to dependency() The pkg-config file to libattr was introduced in 2.4.48 release. Now that every supported distro ships at least this version, we can switch meson detection to dependency(). Signed-off-by: Michal Privoznik Reviewed-by: Erik Skultety --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 33cf8020ba..5715eacf60 100644 --- a/meson.build +++ b/meson.build @@ -898,8 +898,7 @@ if not get_option('apparmor_profiles').disabled() endif endif -# FIXME rewrite to use dependency() once we can use 2.4.48 -attr_dep = cc.find_library('attr', required: get_option('attr')) +attr_dep = dependency('libattr', required: get_option('attr')) if attr_dep.found() conf.set('WITH_LIBATTR', 1) endif