From 6aefdea9d93b695e8f6baaefcfd685d1a078b333 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 1 Dec 2022 14:39:34 -0500 Subject: [PATCH] meson: Use dependency('dl') instead of cc.find_library('dl') meson apparently has some built-in support for libdl, which depending on libc implementations may or may not be in a separate library from libc. This commit changes meson.build to do things the "better" way. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 78b815ad..650ad189 100644 --- a/meson.build +++ b/meson.build @@ -23,7 +23,8 @@ plymouth_runtime_theme_path = plymouth_runtime_dir / 'themes/' cc = meson.get_compiler('c') lm_dep = cc.find_library('m') lrt_dep = cc.find_library('rt') -ldl_dep = cc.find_library('dl') + +ldl_dep = dependency('dl') libpng_dep = dependency('libpng', version: '>= 1.2.16')