net/szedata2: fix dependency check
authorThomas Monjalon <thomas@monjalon.net>
Sat, 14 Sep 2019 09:37:00 +0000 (11:37 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:31 +0000 (12:14 +0200)
commit07737474ece260fc4adbc46a0b2e7352887fa0c2
treece3efbc76fddf2056f3c16def6059463d6b1e650
parenta29052bfeb6037dd9175c9f2cf29345be2bc2f65
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>
drivers/net/szedata2/meson.build