NASM check when building only lib with make
When using make -C lib, we have a warning about NASM.
I suggest this fix:
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -109,7 +109,6 @@ ifneq ($(NASM_IFMA_GE_REQ),true)
$(warning Minimum required NASM version for AVX-IFMA: $(NASM_MAJOR_AVX_IFMA).$(NASM_MINOR_AVX_IFMA). AVX-IFMA code not compiled - update NASM.)
AVX_IFMA := n
endif # NASM_AVX_IFMA_GET_REQ
-endif # x86_64
# Minimum version of NASM with SM3/SM4/SHA512-NI support: 2.16.02
SMX_NI := y
@@ -124,6 +123,8 @@ $(warning Minimum required NASM version for SM3/SM4/SHA512-NI: $(NASM_MAJOR_SMX_
SMX_NI := n
endif # NASM_SMX_NI_GET_REQ
+endif # x86_64
+
INCLUDE_DIRS := include . no-aesni
INCLUDES := $(foreach i,$(INCLUDE_DIRS),-I $i)
Edited by Thomas Monjalon