[ewg] OFED-4.8, rdma-core, and library paths

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Tue Feb 7 10:42:06 PST 2017


On Tue, Feb 07, 2017 at 08:35:38PM +0200, Leon Romanovsky wrote:
> I made it (rdma_shared_provider function), but have a very hard time
> to properly create ".." symlink, because during the build (in place too)
> the output is placed in build/lib in flat structure and symlinks need to
> be without "..". But during installation phase, these symlinks should
> be changed to ".." and it doesn't work for me in automatic way :(

For symlinks build/ and installed are two different flows, they don't intermix

Compile the library to build/lib/libibverbs-dv-mlx5.so.1.0.13
and setup a symlink build/lib/libmlx5-rdmav2.so -> libibverbs-dv-mlx5.so.1.0.13

For install, use realpath like this:

 execute_process(COMMAND "realpath --relative-to ${VERBS_PROVIDER_DIR} ${CMAKE_INSTALL_LIBDIR}/libmlx5.so.1.0.13" OUTPUT_VARIBALE LINK_PATH)
 rdma_install_symlink("${LINK_PATH}/libibverbs-dv-mlx5.so.1.0.13" "${VERBS_PROVIDER_DIR}/libmlx5-rdmav2.so")

The rdma_install_symlink helper takes care of the install step.

Jason



More information about the ewg mailing list