[dpdk-dev] [PATCH 2/2] config: add static linkage of mlx dependency

Bruce Richardson bruce.richardson at intel.com
Wed Jan 9 10:37:39 CET 2019


On Wed, Jan 09, 2019 at 03:05:24AM +0100, Thomas Monjalon wrote:
> The libraries provided by rdma-core may be statically linked
> if enabling CONFIG_RTE_IBVERBS_LINK_STATIC in the make-based build.
> If CONFIG_RTE_BUILD_SHARED_LIB is disabled,
> the applications will embed the mlx PMDs with ibverbs and the mlx libraries.
> If CONFIG_RTE_BUILD_SHARED_LIB is enabled,
> the mlx PMDs will embed ibverbs and the mlx libraries.
> 
> Support with meson may be added later.
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> ---
Just to clarify - if there is a shared library build, the idea is to
actually link in the dependent .a files directly into the .so, rather than
having the driver .so's track their dependency on the other .so files? What
is the prospective use-case for this, and can it cause problems? I thought
it was generally not advisable to be linking in static libraries into
shared libraries.

/Bruce


More information about the dev mailing list