diff options
author | jsg <> | 2017-05-07 04:18:47 +0000 |
---|---|---|
committer | jsg <> | 2017-05-07 04:18:47 +0000 |
commit | 2145114fc4f04a6a75134ef92bc551a976292150 (patch) | |
tree | c7800f9823b6bc325aeacc3e213eb0b573dbd154 /src | |
parent | 939caa9f5a94e32a8cd5c477ca014545d378cf18 (diff) | |
download | openbsd-2145114fc4f04a6a75134ef92bc551a976292150.tar.gz openbsd-2145114fc4f04a6a75134ef92bc551a976292150.tar.bz2 openbsd-2145114fc4f04a6a75134ef92bc551a976292150.zip |
Limit -Werror to gcc4 as was done in libcrypto/libssl/libtls to avoid
failed builds with different compilers.
ok jsing@
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/openssl/Makefile | 10 | ||||
-rw-r--r-- | src/usr.sbin/ocspcheck/Makefile | 10 |
2 files changed, 14 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/Makefile b/src/usr.bin/openssl/Makefile index 5ba283c174..c862418768 100644 --- a/src/usr.bin/openssl/Makefile +++ b/src/usr.bin/openssl/Makefile | |||
@@ -1,11 +1,13 @@ | |||
1 | # $OpenBSD: Makefile,v 1.7 2016/09/04 18:05:34 beck Exp $ | 1 | # $OpenBSD: Makefile,v 1.8 2017/05/07 04:18:47 jsg Exp $ |
2 | |||
3 | .include <bsd.own.mk> | ||
2 | 4 | ||
3 | PROG= openssl | 5 | PROG= openssl |
4 | LDADD= -lssl -lcrypto | 6 | LDADD= -lssl -lcrypto |
5 | DPADD= ${LIBSSL} ${LIBCRYPTO} | 7 | DPADD= ${LIBSSL} ${LIBCRYPTO} |
6 | MAN1= openssl.1 | 8 | MAN1= openssl.1 |
7 | 9 | ||
8 | CFLAGS+= -Wall -Werror | 10 | CFLAGS+= -Wall |
9 | CFLAGS+= -Wformat | 11 | CFLAGS+= -Wformat |
10 | CFLAGS+= -Wformat-security | 12 | CFLAGS+= -Wformat-security |
11 | CFLAGS+= -Wimplicit | 13 | CFLAGS+= -Wimplicit |
@@ -14,7 +16,9 @@ CFLAGS+= -Wreturn-type | |||
14 | CFLAGS+= -Wtrigraphs | 16 | CFLAGS+= -Wtrigraphs |
15 | CFLAGS+= -Wuninitialized | 17 | CFLAGS+= -Wuninitialized |
16 | CFLAGS+= -Wunused | 18 | CFLAGS+= -Wunused |
17 | 19 | .if ${COMPILER_VERSION:L} == "gcc4" | |
20 | CFLAGS+= -Werror | ||
21 | .endif | ||
18 | CFLAGS+= -DLIBRESSL_INTERNAL | 22 | CFLAGS+= -DLIBRESSL_INTERNAL |
19 | 23 | ||
20 | SRCS= apps.c apps_posix.c asn1pars.c ca.c certhash.c ciphers.c crl.c \ | 24 | SRCS= apps.c apps_posix.c asn1pars.c ca.c certhash.c ciphers.c crl.c \ |
diff --git a/src/usr.sbin/ocspcheck/Makefile b/src/usr.sbin/ocspcheck/Makefile index 79f9d5880b..e055c779ab 100644 --- a/src/usr.sbin/ocspcheck/Makefile +++ b/src/usr.sbin/ocspcheck/Makefile | |||
@@ -1,4 +1,6 @@ | |||
1 | # $OpenBSD: Makefile,v 1.2 2017/01/24 09:25:27 deraadt Exp $ | 1 | # $OpenBSD: Makefile,v 1.3 2017/05/07 04:18:47 jsg Exp $ |
2 | |||
3 | .include <bsd.own.mk> | ||
2 | 4 | ||
3 | PROG= ocspcheck | 5 | PROG= ocspcheck |
4 | MAN= ocspcheck.8 | 6 | MAN= ocspcheck.8 |
@@ -6,7 +8,7 @@ MAN= ocspcheck.8 | |||
6 | LDADD= -ltls -lssl -lcrypto | 8 | LDADD= -ltls -lssl -lcrypto |
7 | DPADD= ${LIBTLS} ${LIBSSL} ${LIBCRYPTO} | 9 | DPADD= ${LIBTLS} ${LIBSSL} ${LIBCRYPTO} |
8 | 10 | ||
9 | CFLAGS+= -Wall -Werror | 11 | CFLAGS+= -Wall |
10 | CFLAGS+= -Wformat | 12 | CFLAGS+= -Wformat |
11 | CFLAGS+= -Wformat-security | 13 | CFLAGS+= -Wformat-security |
12 | CFLAGS+= -Wimplicit | 14 | CFLAGS+= -Wimplicit |
@@ -15,7 +17,9 @@ CFLAGS+= -Wshadow | |||
15 | CFLAGS+= -Wtrigraphs | 17 | CFLAGS+= -Wtrigraphs |
16 | CFLAGS+= -Wuninitialized | 18 | CFLAGS+= -Wuninitialized |
17 | CFLAGS+= -Wunused | 19 | CFLAGS+= -Wunused |
18 | 20 | .if ${COMPILER_VERSION:L} == "gcc4" | |
21 | CFLAGS+= -Werror | ||
22 | .endif | ||
19 | CFLAGS+= -DLIBRESSL_INTERNAL | 23 | CFLAGS+= -DLIBRESSL_INTERNAL |
20 | 24 | ||
21 | SRCS= ocspcheck.c http.c | 25 | SRCS= ocspcheck.c http.c |