From 94efdd3fdd2224a07921eeb44d138866a5620d3f Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Wed, 9 Aug 2017 03:25:00 +0800 Subject: [PATCH] vhost, unit: fix DPDK include issue in Makefile. According to the env.mk, DPDK include file can be passed by user, so we need to use DPDK_INC to avoid the compilation issue. Change-Id: I24f6ca496eefe16c18bba7278cc6d00120da79e1 Signed-off-by: Ziye Yang Reviewed-on: https://review.gerrithub.io/373235 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker --- test/unit/lib/vhost/vhost.c/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/lib/vhost/vhost.c/Makefile b/test/unit/lib/vhost/vhost.c/Makefile index 71321d6a8..6f4059ece 100644 --- a/test/unit/lib/vhost/vhost.c/Makefile +++ b/test/unit/lib/vhost/vhost.c/Makefile @@ -40,7 +40,7 @@ SPDK_LIB_LIST = log CFLAGS += -I$(SPDK_ROOT_DIR)/test CFLAGS += -I$(SPDK_ROOT_DIR)/lib/vhost CFLAGS += -I$(SPDK_ROOT_DIR)/lib/vhost/rte_vhost -CFLAGS += -I$(DPDK_DIR)/include +CFLAGS += $(ENV_CFLAGS) LIBS += $(SPDK_LIB_LINKER_ARGS) LIBS += -lcunit