gcc4. This should avoid failed builds while transitioning compilers.
While here also make the CFLAGS blocks consistent across makefiles.
Discussed with deraadt@, ok beck@
-# $OpenBSD: Makefile,v 1.15 2017/02/28 14:15:37 jsing Exp $
+# $OpenBSD: Makefile,v 1.16 2017/04/30 04:44:58 jsing Exp $
LIB= crypto
LCRYPTO_SRC= ${.CURDIR}
-CFLAGS+= -Wall -Wundef -Werror
+CFLAGS+= -Wall -Wundef
+.if ${COMPILER_VERSION:L} == "gcc4"
+CFLAGS+= -Werror
+.endif
+CFLAGS+= -DLIBRESSL_INTERNAL
.if !defined(NOPIC)
CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_FUNOPEN
.endif
-CFLAGS+= -DLIBRESSL_INTERNAL
# Hardware engines
CFLAGS+= -DOPENSSL_NO_HW_PADLOCK # XXX enable this?
-# $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 <bsd.own.mk>
.ifndef NOMAN
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
-# $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 <bsd.own.mk>
.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}