From 9706d48a7c3efe16618188b2cb81126a13667693 Mon Sep 17 00:00:00 2001 From: jsg <> Date: Sun, 7 May 2017 04:18:47 +0000 Subject: Limit -Werror to gcc4 as was done in libcrypto/libssl/libtls to avoid failed builds with different compilers. ok jsing@ --- src/usr.bin/openssl/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/usr.bin') diff --git a/src/usr.bin/openssl/Makefile b/src/usr.bin/openssl/Makefile index 5ba283c174..c862418768 100644 --- a/src/usr.bin/openssl/Makefile +++ b/src/usr.bin/openssl/Makefile @@ -1,11 +1,13 @@ -# $OpenBSD: Makefile,v 1.7 2016/09/04 18:05:34 beck Exp $ +# $OpenBSD: Makefile,v 1.8 2017/05/07 04:18:47 jsg Exp $ + +.include PROG= openssl LDADD= -lssl -lcrypto DPADD= ${LIBSSL} ${LIBCRYPTO} MAN1= openssl.1 -CFLAGS+= -Wall -Werror +CFLAGS+= -Wall CFLAGS+= -Wformat CFLAGS+= -Wformat-security CFLAGS+= -Wimplicit @@ -14,7 +16,9 @@ CFLAGS+= -Wreturn-type CFLAGS+= -Wtrigraphs CFLAGS+= -Wuninitialized CFLAGS+= -Wunused - +.if ${COMPILER_VERSION:L} == "gcc4" +CFLAGS+= -Werror +.endif CFLAGS+= -DLIBRESSL_INTERNAL SRCS= apps.c apps_posix.c asn1pars.c ca.c certhash.c ciphers.c crl.c \ -- cgit v1.2.3-55-g6feb