From d6384322b936d181e80c1948d8ee20a647f0408e 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/libssl/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/libssl') diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile index 12a4b4c2fa..809851d251 100644 --- a/src/lib/libssl/Makefile +++ b/src/lib/libssl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.34 2017/04/29 22:31:42 beck Exp $ +# $OpenBSD: Makefile,v 1.35 2017/04/30 04:44:58 jsing Exp $ .include .ifndef NOMAN @@ -12,10 +12,11 @@ CLEANFILES=${PC_FILES} ${VERSION_SCRIPT} LIB= ssl CFLAGS+= -Wall -Wundef -.if ${COMPILER_VERSION:L} != "gcc3" +.if ${COMPILER_VERSION:L} == "gcc4" CFLAGS+= -Werror .endif CFLAGS+= -DLIBRESSL_INTERNAL + CFLAGS+= -I${.CURDIR} LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto -- cgit v1.2.3-55-g6feb