From patchwork Mon Aug 18 14:45:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 24158 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 4F1EBBEFBE for ; Mon, 18 Aug 2025 14:46:02 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D50856925F; Mon, 18 Aug 2025 16:46:01 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="fX5HVMIF"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B2DA869268 for ; Mon, 18 Aug 2025 16:45:57 +0200 (CEST) Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id 2371B11EB for ; Mon, 18 Aug 2025 16:45:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1755528300; bh=tRzLk8+adOUc7v+1rgQfy3CwxpeFf6Dzqtepez5N1CE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fX5HVMIFCgGLqs/51bCa0l8gwrR8xkSp0QdTpTPIwRVC8iDQsNsppFdIUEPFRetIv 1a0YU+PndjYja04hqp/914FU/FdBm7nbpFirlb6B5OeEzcvwgv2L/EQm08kzQJbVm9 uUHPfe+gitkMSS775Egwa9UUFWPD5Wpg1vMOAr2k= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [PATCH 2/2] meson: Use dependency('dl') Date: Mon, 18 Aug 2025 17:45:31 +0300 Message-ID: <20250818144531.6406-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.49.1 In-Reply-To: <20250818144531.6406-1-laurent.pinchart@ideasonboard.com> References: <20250818144531.6406-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 de1eb99b28fd..b3ca27f217da 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',