From ae9f80354ada144c49087419e870883482b3e9df Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Fri, 19 Feb 2021 17:04:45 +0800 Subject: [PATCH] mk/libvfio-user: use the install directory for the link path Previously the libvfio-user didn't install the static library to the install directory, with that fix in libvfio-user, we can use the install directory now. Change-Id: I3f232395a6dc3bf6d7d3937b245eb10c4b6a0e26 Signed-off-by: Changpeng Liu Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6470 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- mk/spdk.common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/spdk.common.mk b/mk/spdk.common.mk index 5656b0b7b..c78b42f17 100644 --- a/mk/spdk.common.mk +++ b/mk/spdk.common.mk @@ -180,7 +180,7 @@ VFIO_USER_BUILD_TYPE=release endif VFIO_USER_INSTALL_DIR=$(VFIO_USER_DIR)/build VFIO_USER_INCLUDE_DIR=$(VFIO_USER_INSTALL_DIR)/usr/local/include -VFIO_USER_LIBRARY_DIR=$(VFIO_USER_DIR)/build/$(VFIO_USER_BUILD_TYPE)/lib +VFIO_USER_LIBRARY_DIR=$(VFIO_USER_INSTALL_DIR)/usr/local/lib64 CFLAGS += -I$(VFIO_USER_INCLUDE_DIR) LDFLAGS += -L$(VFIO_USER_LIBRARY_DIR) SYS_LIBS += -Wl,-Bstatic -lvfio-user -Wl,-Bdynamic -ljson-c