From b5689b389ec2c3b6539d0205a95be7496a46c81e Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Thu, 22 Sep 2022 12:02:25 +0200 Subject: [PATCH] build: Make sure isa-l is built prior building dependent libs In case SPDK is built with --with-dpdk[=*] rather than the submodule it starts building libs and isa-l together leading to: SO libspdk_util.so.5.1 /usr/bin/ld.bfd: cannot find -lisal collect2: error: ld returned 1 exit status make[2]: *** [/root/spdk/mk/spdk.lib.mk:86: /root/spdk/build/lib/libspdk_util.so.5.1] Error 1 make[1]: *** [/root/spdk/mk/spdk.subdirs.mk:16: util] Error 2 make: *** [/root/spdk/mk/spdk.subdirs.mk:16: lib] Error 2 To avoid this make sure that isa-l, being a hard dependency now, is always build before anything else. Signed-off-by: Michal Berger Change-Id: I933900a756924458324062cd740d99e5ccb370f6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14621 Reviewed-by: Pawel Piatek Reviewed-by: Tomasz Zawadzki Reviewed-by: Konrad Sztyber Reviewed-by: Aleksey Marchuk Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0e951529a..0246c1bf1 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,7 @@ DPDK_DEPS += ipsecbuild endif ifeq ($(CONFIG_ISAL),y) +ISALBUILD = isalbuild LIB += isalbuild DPDK_DEPS += isalbuild endif @@ -89,7 +90,7 @@ dpdkdeps $(DPDK_DEPS): $(WPDK) dpdkbuild: $(WPDK) $(DPDK_DEPS) endif -lib: $(WPDK) $(DPDKBUILD) $(VFIOUSERBUILD) $(XNVMEBUILD) +lib: $(WPDK) $(DPDKBUILD) $(VFIOUSERBUILD) $(XNVMEBUILD) $(ISALBUILD) module: lib shared_lib: module app: $(LIB)