Update to 20150605 * If NOGCCERROR is not defined, add -Wno-error to CFLAGS instead of -Werror. NOGCCERROR means 'do not treat warnings as errors'.diff -r1.44 -r1.45 pkgsrc/pkgtools/bootstrap-mk-files/Makefile
(ryoon)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.44 2014/11/22 16:32:13 bsiegert Exp $ | 1 | # $NetBSD: Makefile,v 1.45 2015/06/04 16:38:10 ryoon Exp $ | |
2 | 2 | |||
3 | PKGNAME= bootstrap-mk-files-20141122 | 3 | PKGNAME= bootstrap-mk-files-20150605 | |
4 | CATEGORIES= pkgtools | 4 | CATEGORIES= pkgtools | |
5 | 5 | |||
6 | CONFLICTS+= mk-files-[0-9]* | 6 | CONFLICTS+= mk-files-[0-9]* | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://www.pkgsrc.org/ | 9 | HOMEPAGE= http://www.pkgsrc.org/ | |
10 | COMMENT= *.mk files for the bootstrap bmake utility | 10 | COMMENT= *.mk files for the bootstrap bmake utility | |
11 | 11 | |||
12 | NO_PKGTOOLS_REQD_CHECK= # defined | 12 | NO_PKGTOOLS_REQD_CHECK= # defined | |
13 | BOOTSTRAP_PKG= yes | 13 | BOOTSTRAP_PKG= yes | |
14 | 14 | |||
15 | NO_BUILD= yes | 15 | NO_BUILD= yes | |
16 | 16 |
@@ -1,38 +1,38 @@ | @@ -1,38 +1,38 @@ | |||
1 | # $NetBSD: bsd.sys.mk,v 1.1.1.1 2006/07/14 23:13:01 jlam Exp $ | 1 | # $NetBSD: bsd.sys.mk,v 1.2 2015/06/04 16:38:10 ryoon Exp $ | |
2 | # | 2 | # | |
3 | # Overrides used for NetBSD source tree builds. | 3 | # Overrides used for NetBSD source tree builds. | |
4 | 4 | |||
5 | .if defined(WARNS) | 5 | .if defined(WARNS) | |
6 | .if ${WARNS} > 0 | 6 | .if ${WARNS} > 0 | |
7 | CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith | 7 | CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith | |
8 | # XXX Delete -Wuninitialized by default for now -- the compiler doesn't | 8 | # XXX Delete -Wuninitialized by default for now -- the compiler doesn't | |
9 | # XXX always get it right. | 9 | # XXX always get it right. | |
10 | CFLAGS+= -Wno-uninitialized | 10 | CFLAGS+= -Wno-uninitialized | |
11 | .endif | 11 | .endif | |
12 | .if ${WARNS} > 1 | 12 | .if ${WARNS} > 1 | |
13 | CFLAGS+=-Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings | 13 | CFLAGS+=-Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings | |
14 | CFLAGS+=-Wswitch -Wshadow | 14 | CFLAGS+=-Wswitch -Wshadow | |
15 | .endif | 15 | .endif | |
16 | .endif | 16 | .endif | |
17 | 17 | |||
18 | .if defined(WFORMAT) && defined(FORMAT_AUDIT) | 18 | .if defined(WFORMAT) && defined(FORMAT_AUDIT) | |
19 | .if ${WFORMAT} > 1 | 19 | .if ${WFORMAT} > 1 | |
20 | CFLAGS+=-Wnetbsd-format-audit -Wno-format-extra-args | 20 | CFLAGS+=-Wnetbsd-format-audit -Wno-format-extra-args | |
21 | .endif | 21 | .endif | |
22 | .endif | 22 | .endif | |
23 | 23 | |||
24 | .if !defined(NOGCCERROR) | 24 | .if !defined(NOGCCERROR) | |
25 | CFLAGS+= -Werror | 25 | CFLAGS+= -Wno-error | |
26 | .endif | 26 | .endif | |
27 | CFLAGS+= ${CWARNFLAGS} | 27 | CFLAGS+= ${CWARNFLAGS} | |
28 | 28 | |||
29 | .if defined(DESTDIR) | 29 | .if defined(DESTDIR) | |
30 | CPPFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include | 30 | CPPFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include | |
31 | LINTFLAGS+= -d ${DESTDIR}/usr/include | 31 | LINTFLAGS+= -d ${DESTDIR}/usr/include | |
32 | .endif | 32 | .endif | |
33 | 33 | |||
34 | .if defined(AUDIT) | 34 | .if defined(AUDIT) | |
35 | CPPFLAGS+= -D__AUDIT__ | 35 | CPPFLAGS+= -D__AUDIT__ | |
36 | .endif | 36 | .endif | |
37 | 37 | |||
38 | .if defined(MKSOFTFLOAT) && (${MKSOFTFLOAT} != "no") | 38 | .if defined(MKSOFTFLOAT) && (${MKSOFTFLOAT} != "no") |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: SunOS.bsd.sys.mk,v 1.1.1.1 2006/07/14 23:13:01 jlam Exp $ | 1 | # $NetBSD: SunOS.bsd.sys.mk,v 1.2 2015/06/04 16:38:10 ryoon Exp $ | |
2 | # | 2 | # | |
3 | # Overrides used for NetBSD source tree builds. | 3 | # Overrides used for NetBSD source tree builds. | |
4 | 4 | |||
5 | .if ${CC:M*gcc*} != "" | 5 | .if ${CC:M*gcc*} != "" | |
6 | 6 | |||
7 | .if defined(WARNS) | 7 | .if defined(WARNS) | |
8 | .if ${WARNS} > 0 | 8 | .if ${WARNS} > 0 | |
9 | CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes | 9 | CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes | |
10 | # XXX Delete -Wuninitialized by default for now -- the compiler doesn't | 10 | # XXX Delete -Wuninitialized by default for now -- the compiler doesn't | |
11 | # XXX always get it right. | 11 | # XXX always get it right. | |
12 | CFLAGS+= -Wno-uninitialized | 12 | CFLAGS+= -Wno-uninitialized | |
13 | .endif | 13 | .endif | |
14 | .if ${WARNS} > 1 | 14 | .if ${WARNS} > 1 | |
@@ -17,27 +17,27 @@ CFLAGS+= -Wreturn-type -Wpointer-arith | @@ -17,27 +17,27 @@ CFLAGS+= -Wreturn-type -Wpointer-arith | |||
17 | .if ${WARNS} > 2 | 17 | .if ${WARNS} > 2 | |
18 | CFLAGS+= -Wcast-qual -Wwrite-strings | 18 | CFLAGS+= -Wcast-qual -Wwrite-strings | |
19 | .endif | 19 | .endif | |
20 | CFLAGS+= -Wswitch -Wshadow | 20 | CFLAGS+= -Wswitch -Wshadow | |
21 | .endif | 21 | .endif | |
22 | 22 | |||
23 | .if defined(WFORMAT) && defined(FORMAT_AUDIT) | 23 | .if defined(WFORMAT) && defined(FORMAT_AUDIT) | |
24 | .if ${WFORMAT} > 1 | 24 | .if ${WFORMAT} > 1 | |
25 | CFLAGS+= -Wnetbsd-format-audit -Wno-format-extra-args | 25 | CFLAGS+= -Wnetbsd-format-audit -Wno-format-extra-args | |
26 | .endif | 26 | .endif | |
27 | .endif | 27 | .endif | |
28 | 28 | |||
29 | .if !defined(NOGCCERROR) | 29 | .if !defined(NOGCCERROR) | |
30 | CFLAGS+= -Werror | 30 | CFLAGS+= -Wno-error | |
31 | .endif | 31 | .endif | |
32 | CFLAGS+= ${CWARNFLAGS} | 32 | CFLAGS+= ${CWARNFLAGS} | |
33 | 33 | |||
34 | .if defined(DESTDIR) | 34 | .if defined(DESTDIR) | |
35 | CPPFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include | 35 | CPPFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include | |
36 | LINTFLAGS+= -d ${DESTDIR}/usr/include | 36 | LINTFLAGS+= -d ${DESTDIR}/usr/include | |
37 | .endif | 37 | .endif | |
38 | 38 | |||
39 | .if defined(MKSOFTFLOAT) && (${MKSOFTFLOAT} != "no") | 39 | .if defined(MKSOFTFLOAT) && (${MKSOFTFLOAT} != "no") | |
40 | COPTS+= -msoft-float | 40 | COPTS+= -msoft-float | |
41 | FOPTS+= -msoft-float | 41 | FOPTS+= -msoft-float | |
42 | .endif | 42 | .endif | |
43 | 43 |