aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2021-08-19 16:48:30 +0000
committerAndrew Turner <andrew@FreeBSD.org>2021-08-19 16:48:30 +0000
commitc81ea895b563c4d1e39468a8525284b7474fe850 (patch)
treea49de8b78257b0bf16178709051a930ba0542d15
parentfc7682b17f3738573099b8b03f5628dcc8148adb (diff)
downloadsrc-c81ea895b563c4d1e39468a8525284b7474fe850.tar.gz
src-c81ea895b563c4d1e39468a8525284b7474fe850.zip
Disable the accelerated arm64 sha25 in static libraries
We don't have ifunc support in static arm64 binaries. Until we do disable the accelerated sha256 code in a static libmd as it uses an ifunc. Reported by: brd Sponsored by: The FreeBSD Foundation
-rw-r--r--lib/libmd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index 480796ae5029..ee92b7cb71ab 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -131,7 +131,7 @@ ACFLAGS+= -DELF -Wa,--noexecstack
.endif
.if ${MACHINE_CPUARCH} == "aarch64"
SRCS+= sha256c_arm64.c
-CFLAGS+= -DARM64_SHA2
+SHARED_CFLAGS+= -DARM64_SHA2
CFLAGS.sha256c_arm64.c+= -march=armv8-a+crypto
.endif
.endif # ${USE_ASM_SOURCES} != 0