From: Ray Strode Date: Thu, 1 Dec 2022 19:39:34 +0000 (-0500) Subject: meson: Use dependency('dl') instead of cc.find_library('dl') X-Git-Tag: 23.51.283~34^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aefdea9d93b695e8f6baaefcfd685d1a078b333;p=thirdparty%2Fplymouth.git 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. --- 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')