net/mlx: fix overlinking with meson and glue dlopen
authorThomas Monjalon <thomas@monjalon.net>
Wed, 12 Feb 2020 22:07:08 +0000 (23:07 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 Feb 2020 11:42:13 +0000 (12:42 +0100)
commite21492a5175af31ae568fa5fabef1f4b22706962
treee700759d57bc93a39fa53a49cffff29d0c813686
parent76c72a34bb0aa174fea2fa4978550603e154357f
net/mlx: fix overlinking with meson and glue dlopen

If ibverbs_link is dlopen, the PMD and application should not
be linked with ibverbs, but the glue library is.
Unfortunately the ibverbs dependency was exported in the
variable ext_deps, so there were overlinking.

It is fixed by not exporting the dependency in ext_deps,
and recreating a limited dependency object for cflags only.

Fixes: 1dd7c7e38c19 ("net/mlx4: support meson build")
Fixes: 96d7c62a70c7 ("net/mlx5: support meson build")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/common/mlx5/meson.build
drivers/net/mlx4/meson.build