summaryrefslogtreecommitdiff
path: root/src/lib/libtls
diff options
context:
space:
mode:
authorjsing <>2017-04-30 04:44:58 +0000
committerjsing <>2017-04-30 04:44:58 +0000
commit5952ef2f33ac903c4ae6711762df29c1aba6b640 (patch)
tree6dd7e7bcf74c683e17469fe4e4f0086513fbd2ac /src/lib/libtls
parent218193cef9ff51b530e3b4dba5b4fdf95fe01bb3 (diff)
downloadopenbsd-5952ef2f33ac903c4ae6711762df29c1aba6b640.tar.gz
openbsd-5952ef2f33ac903c4ae6711762df29c1aba6b640.tar.bz2
openbsd-5952ef2f33ac903c4ae6711762df29c1aba6b640.zip
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@
Diffstat (limited to 'src/lib/libtls')
-rw-r--r--src/lib/libtls/Makefile7
1 files changed, 5 insertions, 2 deletions
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 @@
1# $OpenBSD: Makefile,v 1.30 2017/01/25 23:53:18 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.31 2017/04/30 04:44:58 jsing Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4.ifndef NOMAN 4.ifndef NOMAN
5SUBDIR= man 5SUBDIR= man
6.endif 6.endif
7 7
8CFLAGS+= -Wall -Werror -Wimplicit 8CFLAGS+= -Wall -Wimplicit -Wundef
9.if ${COMPILER_VERSION:L} == "gcc4"
10CFLAGS+= -Werror
11.endif
9CFLAGS+= -DLIBRESSL_INTERNAL 12CFLAGS+= -DLIBRESSL_INTERNAL
10 13
11CLEANFILES= ${VERSION_SCRIPT} 14CLEANFILES= ${VERSION_SCRIPT}