aboutsummaryrefslogtreecommitdiff
path: root/secure
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2022-07-25 17:17:50 +0000
committerJessica Clarke <jrtc27@FreeBSD.org>2022-07-25 17:17:50 +0000
commit3b41ae32124ad7b61b2297b2e7f3aa5d76b30c53 (patch)
tree5455d5e89d8b65e21f71806222fc497220d78aba /secure
parent8bc3673847453ca51237b5c85fe57f3f02e17a4b (diff)
Diffstat (limited to 'secure')
-rw-r--r--secure/lib/libcrypto/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile
index cf9259a19e16..e318179120ce 100644
--- a/secure/lib/libcrypto/Makefile
+++ b/secure/lib/libcrypto/Makefile
@@ -121,6 +121,11 @@ SRCS+= ppc.S ppc-mont.S
SRCS+= bn_asm.c
.endif
+# Full of strict aliasing violations that LLVM has been seen to break with
+# optimisations, which can lead to ECDSA signatures not working. See
+# https://github.com/openssl/openssl/issues/12247 for the upstream bug report.
+CFLAGS.bn_nist.c+= -fno-strict-aliasing
+
# buffer
SRCS+= buf_err.c buffer.c