[dpdk-dev] [PACTH v3 2/2] mlx4: fix shared library dependency

Thomas Monjalon thomas.monjalon at 6wind.com
Mon Aug 3 00:23:34 CEST 2015

2015-07-31 15:14, Nelio Laranjeiro:
> librte_pmd_mlx4.so needs to be linked with libibverbs otherwise, the PMD is
> not able to open Mellanox devices and the following message is printed by
> testpmd at startup
> "librte_pmd_mlx4: cannot access device, is mlx4_ib loaded?".
> Applications dependency on libibverbs are moved to be only valid in static
> mode, in shared mode, applications do not depend on it anymore,
> librte_pmd_mlx4.so keeps this dependency and thus is linked with libibverbs.
> MLX4 cannot be supported in combined shared library because there is no clean
> way of adding -libverbs to the combined library.
> Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro at 6wind.com>
> Acked-by: Olivier Matz <olivier.matz at 6wind.com>

> +$(info MLX4: Not supported in a combined shared library)
> +all:
> +	false
changed to;
	@echo 'MLX4: Not supported in a combined shared library'

Applied, thanks

More information about the dev mailing list