[dpdk-dev] [PATCH] mk: fix linking with static ibverbs libraries

Thomas Monjalon thomas at monjalon.net
Thu May 7 00:01:10 CEST 2020


29/04/2020 14:11, Bing Zhao:
> When building a target application with static linking mode via
> makefiles and enable linking to ibverbs libs by setting
> "CONFIG_RTE_IBVERBS_LINK_STATIC=y". The libibverbs.pc will be
> chosen and all the libs listed in the file will be linked
> by default. Some static lib archives may contain the same files
> and common interfaces inside.
> The "--no-whole-archive" needs to be enabled for the linker to
> discard the useless symbols and resolve the symbols redefinition
> error.
> 
> Fixes: 95276abaaf0a ("vdpa/mlx5: introduce Mellanox vDPA driver")

The origin is older than vdpa PMD.
It is when introducing ibverbs static linking:
Fixes: 2c0dd7b69fb0 ("config: add static linkage of mlx dependency")

> Cc: stable at dpdk.org
> 
> Signed-off-by: Bing Zhao <bingz at mellanox.com>

Acked-by: Thomas Monjalon <thomas at monjalon.net>

Applied, thanks




More information about the dev mailing list