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.
This commit is contained in:
Ray Strode 2022-12-01 14:39:34 -05:00 committed by Ray Strode
parent fcaa382d53
commit 6aefdea9d9

View 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')