From patchwork Fri Jul 28 16:15:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 18902 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 A8111BDC71 for ; Fri, 28 Jul 2023 16:15:15 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 23321627EB; Fri, 28 Jul 2023 18:15:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1690560915; bh=Sp0qECWmVh/ZuUTtS2SgQej0LisPOPM5J+JTN1l605Y=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=FM5L9fzXJw0Jal84mbAg0Xu3j1fxpv2Ax3Yh0yFVNO8txbK3L75p3dn+RQHRR/oAX wE0fYy//nkrkGo8VPb0Q51Xu6LW8Nknm/o8htR6CNYRGN03tOxVvhFYxzDkxCENoQm 17uSFxn8QbvDVq079ON4HdT0NGNOmKTp5/JPzM6sZ3I7BS+RbYi8LgOHJDpw2czaZ0 +DCMjeJ4EGhvmS7atZztVsFyE+hFafXDJ7TpIhkwctVfpgj2MYsAlYQrpcn17C+8DH 6xgFQivNSDsMQvgHOv3rIZMWiWx+oygMDgFtwFD63hKPoTC15QcAYKkyWVizWKCOz3 g8Oqufph8iyxA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 88D36627E6 for ; Fri, 28 Jul 2023 18:15:13 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Zgbd4BRf"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A1FC27F3 for ; Fri, 28 Jul 2023 18:14:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1690560852; bh=Sp0qECWmVh/ZuUTtS2SgQej0LisPOPM5J+JTN1l605Y=; h=From:To:Subject:Date:From; b=Zgbd4BRfNMvHTiwP6i6I5rwHgke7r6YN3dUrURvN/gtQ4g0vnHFXBoOExznQIAEkH 9/KNPvSIKHBYU8PHZaxnPuTBk/t0qkZyF1IGkXbNGzBvAIbmxKU1gcwIBQXtad0qNn 7q41FFeBWkhywiMRL9D9hpUecFFUJ9NcE+nLItnc= To: libcamera-devel@lists.libcamera.org Date: Fri, 28 Jul 2023 19:15:17 +0300 Message-ID: <20230728161517.15399-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] meson: Correctly locate libc++ 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: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The meson find_library() function takes a library name without the "lib" prefix. Its usage to find lic++ is thus not correct, and meson warns about it: WARNING: find_library('libc++') starting in "lib" only works by accident and is not portable Fix it by dropping the "lib" prefix. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 031e1eda08f0..7959b5386eee 100644 --- a/meson.build +++ b/meson.build @@ -109,7 +109,7 @@ if cc.get_id() == 'clang' # Use libc++ by default if available instead of libstdc++ when compiling # with clang. - if cc.find_library('libc++', required : false).found() + if cc.find_library('c++', required : false).found() cpp_arguments += [ '-stdlib=libc++', ]