net/mlx: fix library search in meson build
authorYongseok Koh <yskoh@mellanox.com>
Thu, 18 Apr 2019 11:49:02 +0000 (04:49 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 18 Apr 2019 16:22:42 +0000 (18:22 +0200)
commitd588f12ffba1c306008ecb04f5d31e4a54a60f16
tree6d2fbeaafe34028e3e5f55bb068c8d5e2219801c
parent0559d091cc7c80601aa3c9e708276f2e086f5983
net/mlx: fix library search in meson build

If MLNX_OFED is installed, there's no .pc file installed for libraries and
dependency() can't find libraries by pkg-config. By adding fallback of
using cc.find_library(), libraries are properly located.

Fixes: e30b4e566f47 ("build: improve dependency handling")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Luca Boccassi <bluca@debian.org>
drivers/net/mlx4/meson.build
drivers/net/mlx5/meson.build