From cde765e175ebe25cfd446d0196c0a0a3d1f843c5 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: I0b60dc67a001d7d7a25d0c752c46a79b37e7bee5 Signed-off-by: Ziye Yang Reviewed-on: https://review.gerrithub.io/377965 Tested-by: SPDK Automated Test System Reviewed-by: John Kariuki Reviewed-by: Jim Harris --- 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