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 <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6470 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
c837419aac
commit
ae9f80354a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user