From 5952ef2f33ac903c4ae6711762df29c1aba6b640 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 30 Apr 2017 04:44:58 +0000 Subject: Only enable -Werror on libcrypto/libssl/libtls if we are building with gcc4. This should avoid failed builds while transitioning compilers. While here also make the CFLAGS blocks consistent across makefiles. Discussed with deraadt@, ok beck@ --- src/lib/libtls/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lib/libtls') diff --git a/src/lib/libtls/Makefile b/src/lib/libtls/Makefile index d528ddf5ee..2b09517fbe 100644 --- a/src/lib/libtls/Makefile +++ b/src/lib/libtls/Makefile @@ -1,11 +1,14 @@ -# $OpenBSD: Makefile,v 1.30 2017/01/25 23:53:18 schwarze Exp $ +# $OpenBSD: Makefile,v 1.31 2017/04/30 04:44:58 jsing Exp $ .include .ifndef NOMAN SUBDIR= man .endif -CFLAGS+= -Wall -Werror -Wimplicit +CFLAGS+= -Wall -Wimplicit -Wundef +.if ${COMPILER_VERSION:L} == "gcc4" +CFLAGS+= -Werror +.endif CFLAGS+= -DLIBRESSL_INTERNAL CLEANFILES= ${VERSION_SCRIPT} -- cgit v1.2.3-55-g6feb