summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2019-09-14 11:37:00 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2019-10-08 12:14:31 +0200
commit07737474ece260fc4adbc46a0b2e7352887fa0c2 (patch)
treece3efbc76fddf2056f3c16def6059463d6b1e650 /drivers/net
parenta29052bfeb6037dd9175c9f2cf29345be2bc2f65 (diff)
downloaddpdk-07737474ece260fc4adbc46a0b2e7352887fa0c2.zip
dpdk-07737474ece260fc4adbc46a0b2e7352887fa0c2.tar.gz
dpdk-07737474ece260fc4adbc46a0b2e7352887fa0c2.tar.xz
net/szedata2: fix dependency check
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 <thomas@monjalon.net> Acked-by: Jan Remes <remes@netcope.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/szedata2/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/szedata2/meson.build b/drivers/net/szedata2/meson.build
index 032b425..b53fcbc 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