diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2017-04-30 04:44:59 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2017-04-30 04:44:59 +0000 |
commit | 8ffc1e5b0618fb8054fd055a74eee97a80fd6e7f (patch) | |
tree | f76b749212ce810fe63ffadd2e2d8b38e7ef3f32 /lib/libtls | |
parent | a93e754090cee98c79aa9d53ecc8cb477e0af916 (diff) |
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 'lib/libtls')
-rw-r--r-- | lib/libtls/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libtls/Makefile b/lib/libtls/Makefile index d528ddf5eeb..2b09517fbe2 100644 --- a/lib/libtls/Makefile +++ b/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 <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} |