From dee77f45d0f961de0b421f36bbde4196624a13c5 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Fri, 7 Apr 2023 00:40:34 +0000 Subject: [PATCH] module: resync part of Makefile.bsd sha256-armv8.S and sha512-armv8.S need the same treatment as the sse bits; removal of -mgeneral-regs-only from flags. This fixes errors about requiring NEON, which is a difference in clang vs. gcc treatment of -mgeneral-regs-only being specified on asm files. Reviewed-by: Richard Yao Reviewed-by: Brian Behlendorf Reviewed-by: Tino Reichardt Signed-off-by: Kyle Evans Closes #14715 --- module/Makefile.bsd | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/module/Makefile.bsd b/module/Makefile.bsd index 8ec094d4a..365609fb8 100644 --- a/module/Makefile.bsd +++ b/module/Makefile.bsd @@ -507,6 +507,16 @@ CFLAGS.zstd_lazy.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_ldm.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} CFLAGS.zstd_opt.c+= ${__ZFS_ZSTD_AARCH64_FLAGS} +sha256-armv8.o: sha256-armv8.S + ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC} \ + -o ${.TARGET} + ${CTFCONVERT_CMD} + +sha512-armv8.o: sha512-armv8.S + ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC} \ + -o ${.TARGET} + ${CTFCONVERT_CMD} + b3_aarch64_sse2.o: b3_aarch64_sse2.S ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${.IMPSRC} \ -o ${.TARGET}