From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0B21BA2EEB for ; Sat, 14 Sep 2019 11:37:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BDB5E1EB57; Sat, 14 Sep 2019 11:37:33 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 2B1511EB21; Sat, 14 Sep 2019 11:37:32 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id CB92B210F2; Sat, 14 Sep 2019 05:37:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 14 Sep 2019 05:37:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=UrbS+2AFdX TGrc0Nd28eIdn9wvTczP/Xk8Ir73B7Xk8=; b=XYIOcVU+Fqsepd9lyeWaBCTQ1F OWDLdOwufCFwiezBzxst1XTjtxLj4rcslFib9jxoz/RmOhVVpgpBfFMuXiiR6gpC 6biA8rwVfXvG+YGi8ZPun4hCrxSwXbvIbh7MJPx4A4dBXLKPn2TcbEaRDZAXsgc4 PIul8zaGtUvaGn6Qk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=UrbS+2AFdXTGrc0Nd28eIdn9wvTczP/Xk8Ir73B7Xk8=; b=TdOkee75 CdpoUgOW0DED7dw4kjGRL3HoE1qOicS8SSoBEUn2H5QUd2vaIcNgdsobY5VQrIqY UZjZrNgVXiwnLuVTwvRxncQt2BF0Dtj/VAldW2QJIeKzHcijfKqEe1YbZXKv/aqu /3mvZE7ol+mMmPqwEA+VRFcYWAv8wPQLvJJZJgpMy/GJXMX4KqjtXC/dgDrxdkrt GcrVwMYpK8KLhKoQ4afdPEZU4bmZgLCF/icHaHuwZHFRPg+taBZPI3rUBU/FVFva 7SvKH3sLcbPNwnMxQ94gadWllVGSyFXD+8iprjfV86vawFe7Xj0E7zY0bgaxuv/E ootmbVHuuxJ6dA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrtdelgddukecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgepud X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id E6936D6005A; Sat, 14 Sep 2019 05:37:30 -0400 (EDT) From: Thomas Monjalon To: bruce.richardson@intel.com, Jan Remes , Rastislav Cernay Cc: dev@dpdk.org, stable@dpdk.org Date: Sat, 14 Sep 2019 11:37:00 +0200 Message-Id: <20190914093700.11451-3-thomas@monjalon.net> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190914093700.11451-1-thomas@monjalon.net> References: <20190914093700.11451-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 2/2] net/szedata2: fix dependency check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The library libsze2 provides a pkg-config file: libsze2.pc. Looking for this .pc file - with dependency() - is preferred than looking for the library - with cc.find_library(). If the library is not installed in a standard path, it can be found thanks to PKG_CONFIG_PATH variable. The previous solution required to use CFLAGS and LDFLAGS environment variables. Fixes: 508cfe6be9f1 ("net/szedata2: add to meson build") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon --- drivers/net/szedata2/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/szedata2/meson.build b/drivers/net/szedata2/meson.build index 032b42518..b53fcbc59 100644 --- a/drivers/net/szedata2/meson.build +++ b/drivers/net/szedata2/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation -dep = cc.find_library('sze2', required: false) +dep = dependency('libsze2', required: false) build = dep.found() reason = 'missing dependency, "libsze2"' ext_deps += dep -- 2.23.0