]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
meson: Use dependency('dl') instead of cc.find_library('dl')
authorRay Strode <rstrode@redhat.com>
Thu, 1 Dec 2022 19:39:34 +0000 (14:39 -0500)
committerRay Strode <halfline@gmail.com>
Mon, 2 Jan 2023 17:33:53 +0000 (17:33 +0000)
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

index 78b815ad132972312389f3a31e3ed1c6a26d6c8b..650ad189d80ce6b723089dc0670b9ce18a95093d 100644 (file)
@@ -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')