From 72981e9e4f201161bfe0f8c6c604a597d4f8404d Mon Sep 17 00:00:00 2001 From: Alexey Marchuk Date: Tue, 29 Sep 2020 14:21:24 +0300 Subject: [PATCH] app/lspci: Link libmlx5 when mlx5_dv RDMA provider is used It is necessary to link libmlx5, otherwise we'll get a linkage error: libspdk_rdma.a(rdma_mlx5_dv.o): In function `spdk_rdma_qp_create': rdma_mlx5_dv.c:123: undefined reference to `mlx5dv_create_qp' Signed-off-by: Alexey Marchuk Change-Id: Ib3ee4fd0a6e0c9d605a558da0be47c99af4bc366 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4457 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Reviewed-by: Ben Walker --- app/spdk_lspci/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/spdk_lspci/Makefile b/app/spdk_lspci/Makefile index aa3cef0fe4..ce16e01ae2 100644 --- a/app/spdk_lspci/Makefile +++ b/app/spdk_lspci/Makefile @@ -43,6 +43,9 @@ SPDK_LIB_LIST += nvme thread util log sock vmd jsonrpc json rpc ifeq ($(CONFIG_RDMA),y) SPDK_LIB_LIST += rdma +ifeq ($(CONFIG_RDMA_PROV),mlx5_dv) +SYS_LIBS += -lmlx5 +endif endif include $(SPDK_ROOT_DIR)/mk/spdk.app.mk