mlx4: fix shared library dependency
authorNelio Laranjeiro <nelio.laranjeiro@6wind.com>
Fri, 31 Jul 2015 13:14:18 +0000 (15:14 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 2 Aug 2015 22:38:26 +0000 (00:38 +0200)
commit113c8e13c4201eee207723571f83aaf285277d75
tree8d6de5d5e4d887f0108e560eb447293df9d9d067
parentbef06a8a0655a2d5b2d0e30bb46b3a64b1f13881
mlx4: fix shared library dependency

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@6wind.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
doc/guides/nics/mlx4.rst
drivers/net/mlx4/Makefile
mk/rte.app.mk