From 77d3ca7b478e86c1491af5167f42c9959d40bd88 Mon Sep 17 00:00:00 2001 From: Jin Yu Date: Wed, 11 Dec 2019 05:08:30 +0800 Subject: [PATCH] perf: fix makefile The OS defines in the spdk.common.mk. nvme.libtest.mk include the spdk.common.mk. Fixes the issue #1106 Change-Id: If37e0f6508ce116a4df6d96d72bea0c693fb53a5 Signed-off-by: Jin Yu Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/477449 Reviewed-by: Changpeng Liu Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris Community-CI: Broadcom SPDK FC-NVMe CI Community-CI: SPDK CI Jenkins Tested-by: SPDK CI Jenkins --- examples/nvme/perf/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/nvme/perf/Makefile b/examples/nvme/perf/Makefile index faa21d9e8..fad33d891 100644 --- a/examples/nvme/perf/Makefile +++ b/examples/nvme/perf/Makefile @@ -35,11 +35,6 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../..) APP = perf -ifeq ($(OS),Linux) -SYS_LIBS += -laio -CFLAGS += -DHAVE_LIBAIO -endif - install: $(APP) $(INSTALL_EXAMPLE) @@ -47,3 +42,8 @@ uninstall: $(UNINSTALL_EXAMPLE) include $(SPDK_ROOT_DIR)/mk/nvme.libtest.mk + +ifeq ($(OS),Linux) +SYS_LIBS += -laio +CFLAGS += -DHAVE_LIBAIO +endif