From 392e9044b1f6f91b3fff465c7cdbc475b323a920 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 18 Aug 2025 17:25:26 +0300 Subject: [PATCH] meson: Use dependency('dl') MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Kieran Bingham Reviewed-by: Barnabás Pőcze --- src/libcamera/meson.build | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index de1eb99b..b3ca27f2 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -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',