From patchwork Mon Oct 24 05:55:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dufresne via libcamera-devel X-Patchwork-Id: 17682 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 967CAC3285 for ; Mon, 24 Oct 2022 05:56:02 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 465CF61F4C; Mon, 24 Oct 2022 07:56:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1666590962; bh=l1YSxb16YMG5Rjo9BUIYM0BK9ohwnhRVgri/kbpMAhw=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=pdBAAqjwQW+Tlg6qTRdxZI3mSUS7nr2k4uU92spd5SN7/VBG331Gls0VRlHJqeMAW vSQRtNCbvqJz4VjiATe/jqpG61PFhN/n6TbHUdIv67GaWO79lw2WWc9Ix44qODXtWH biG2O6TCuEmt0/KELzrmeCcrHwUqrc6San2eAjL1/wlGvjirS62WvTXLL9bnpS8ovd 2/pOTEimq0Ib3K69ZVrDh+BEwm0xv0il8W0RJCFNi/gyujzw5y1NMVPfw4464fcDCl J9oFnoSh4guz95Y5rzA+No1mjZX7GX1l4I6kRHo8eyQ6Wtc55wngSh7SUOb+lca5cW JNDFwtQXBZpiQ== Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 80EBE62EEF for ; Mon, 24 Oct 2022 07:55:58 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=rothemail-net.20210112.gappssmtp.com header.i=@rothemail-net.20210112.gappssmtp.com header.b="hBwZbmR4"; dkim-atps=neutral Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-132fb4fd495so10735673fac.12 for ; Sun, 23 Oct 2022 22:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothemail-net.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=2AtyVqDzlHbSkpBALiBvD0oxmgvK5tvSmEvE0mRkleY=; b=hBwZbmR4ax7pVZ5OrktXICEzoLvwpxz5Jskp1YkXA9bi1FBkFkHAQJNU8AtJxcHHZc 8coKb+f/lSh7fo+w2yPy6mcscTJSdTUyEkSeQiJaPOgUyeZOhSYEv83PYvy/ZohouLBe oX+c9vBvWY/MtrB8L0lrR53OFZY03Ht1vjwXIP4Jc05gMPaO3TDXDPEk+C1Fx1TVNK6c ZcyTZsU6KoVz4rDjnJ0/bTv4Vv4Pg/yhypY3oviZ1W9DWCyoqHiDVPC2jC3XRwhwYivg rOs8aLzQ6LxPG/mgDW4o2YHmIxpEDfWZmbNCIsQkdyHoUmcNNRkpek/SHS75uzhBspe7 U+7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=2AtyVqDzlHbSkpBALiBvD0oxmgvK5tvSmEvE0mRkleY=; b=PyTz15tAZGCWDp8WJD2k3tZ5/9IzoYaDf0I8x8Rq7r8YrCnUe0D1dRAVXaYYMWJfO4 fJaB0UgU04hbtFtLoGLqNbSv5tTC+AWCaMhsN+bAztoTpVwMbBoWR1GH7pCXQB+A2bGc szzSs8VRJ+McJghnSHa83gGM1hLrB/btlwV4vHmgkwRhyK5tPz6gb/wmLEPGiQLj/8Mi FCES+xNihwFp5p9xO6TVyG80ILUG5z9oLY0dvPQByXK+m6CH5fJcwKn4zBtU3FxL1bBo UrjVvyet6UH9MiFOumrDdIB1ZE2+JBBPlef/RfTA0C9ppW4nwspWbFmC7jCPOozqIFng OrRA== X-Gm-Message-State: ACrzQf3Iy4QYa0g59tyhmmRo+YHevvFYSIdDX7eMfxeqpsXdzYKzuKJ7 0CLQxkYgecJacBFxczsNIrlSJogxAi/oXVqK X-Google-Smtp-Source: AMsMyM4MGJGHjw9A4uYqFMPtf5zO1BydCnpYiZd8QQNfptLjdjjYz6PANMsX2e1Wr2ByrQE73sAc0Q== X-Received: by 2002:a05:6870:b61e:b0:13a:f0ad:8147 with SMTP id cm30-20020a056870b61e00b0013af0ad8147mr13897202oab.270.1666590957700; Sun, 23 Oct 2022 22:55:57 -0700 (PDT) Received: from nroth-pc.attlocal.net ([2600:1700:20:20c0:7bc3:aed3:676f:10a0]) by smtp.gmail.com with ESMTPSA id x15-20020a9d628f000000b0066193df8edasm3980278otk.34.2022.10.23.22.55.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Oct 2022 22:55:57 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Mon, 24 Oct 2022 00:55:39 -0500 Message-Id: <20221024055543.116040-8-nicholas@rothemail.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221024055543.116040-1-nicholas@rothemail.net> References: <20221024055543.116040-1-nicholas@rothemail.net> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 07/11] Makes libdl optional when the runtime includes a dynamic loader. 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: , X-Patchwork-Original-From: Nicholas Roth via libcamera-devel From: Nicolas Dufresne via libcamera-devel Reply-To: libcamera-devel@lists.libcamera.org Cc: nicholas@rothemail.net Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" From: Nicholas Roth --- src/libcamera/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 5f39d2e2..0494e808 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -65,7 +65,12 @@ subdir('ipa') subdir('pipeline') subdir('proxy') -libdl = cc.find_library('dl') +null_dep = dependency('', required : false) + +libdl = null_dep +if not cc.has_function('dlopen') + libdl = cc.find_library('dl') +endif libudev = dependency('libudev', required : false) libyaml = dependency('yaml-0.1', required : false)