common/mlx5: fix build without dlopen option
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Fri, 6 Mar 2020 14:27:19 +0000 (22:27 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 09:21:41 +0000 (10:21 +0100)
commita6e7cd81fa41a9938d4d056e0b6c18adc0b67546
treeb7b9a4da7217b56fe780228e740e98d49c7a53cf
parente8e5fdfdd63488e958e0009b775cd717fe16fa5c
common/mlx5: fix build without dlopen option

When setting the CONFIG_RTE_BUILD_SHARED_LIB to y,
and build the mlx5 pmd, there is a building error.
To fix it, add RTE_IBVERBS_LINK_DLOPEN to include
relative codes.

    mlx5_common.o: In function `mlx5_glue_init':
    drivers/common/mlx5/mlx5_common.c:324: undefined reference to `dlclose'

Fixes: 7b4f1e6bd367 ("common/mlx5: introduce common library")
Cc: stable@dpdk.org
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Tested-by: Ali Alnubani <alialnu@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/common/mlx5/mlx5_common.c
drivers/net/mlx4/mlx4.c