diff --git a/app/Makefile b/app/Makefile index 94e067e36..585249201 100644 --- a/app/Makefile +++ b/app/Makefile @@ -35,7 +35,7 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/..) include $(SPDK_ROOT_DIR)/mk/spdk.common.mk DIRS-y += trace -DIRS-$(CONFIG_RDMA) += nvmf_tgt +DIRS-y += nvmf_tgt ifeq ($(OS),Linux) DIRS-y += iscsi_tgt endif diff --git a/app/nvmf_tgt/Makefile b/app/nvmf_tgt/Makefile index d4fe20d7b..9cc122f91 100644 --- a/app/nvmf_tgt/Makefile +++ b/app/nvmf_tgt/Makefile @@ -67,7 +67,10 @@ LIBS += $(BLOCKDEV_MODULES_LINKER_ARGS) \ LIBS += $(SPDK_LIBS) $(PCIACCESS_LIB) +ifeq ($(CONFIG_RDMA),y) LIBS += -libverbs -lrdmacm +endif + LIBS += $(DPDK_LIB) all : $(APP)