meson: Use dependency('dl')

Support for locating libdl through dependency('dl') was broken before
meson v0.62.0. Now that we require a newer version, drop the hack and
use the dependency() function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2025-08-18 17:25:26 +03:00
parent 82f5facfc7
commit 392e9044b1
+1 -7
View File
@@ -76,13 +76,7 @@ subdir('proxy')
subdir('sensor')
subdir('software_isp')
null_dep = dependency('', required : false)
# TODO: Use dependency('dl') when updating to meson 0.62.0 or newer.
libdl = null_dep
if not cc.has_function('dlopen')
libdl = cc.find_library('dl')
endif
libdl = dependency('dl')
libudev = dependency('libudev', required : get_option('udev'))
libyaml = dependency('yaml-0.1', default_options : [
'default_library=static',