summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/lib/libcrypto/hmac/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/regress/lib/libcrypto/hmac/Makefile b/regress/lib/libcrypto/hmac/Makefile
index 67053362114..19ec43dce0e 100644
--- a/regress/lib/libcrypto/hmac/Makefile
+++ b/regress/lib/libcrypto/hmac/Makefile
@@ -1,9 +1,15 @@
-# $OpenBSD: Makefile,v 1.3 2014/07/08 15:53:52 jsing Exp $
+# $OpenBSD: Makefile,v 1.4 2024/08/08 03:46:50 tb Exp $
+
+.include <bsd.own.mk>
PROG= hmactest
LDADD= -lcrypto
DPADD= ${LIBCRYPTO}
WARNINGS= Yes
-CFLAGS+= -DLIBRESSL_INTERNAL -Werror
+CFLAGS+= -DLIBRESSL_INTERNAL
+# The bounded attribute for HMAC_Init_ex() warns for gcc, breaking compilation
+.if ${COMPILER_VERSION:L} == "clang"
+CFLAGS+= -Werror
+.endif
.include <bsd.regress.mk>