summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-12-31 00:07:26 +0000
committerEd Schouten <ed@FreeBSD.org>2009-12-31 00:07:26 +0000
commit03bc68ca091b5f59ae3e8a46874c7b79275381ec (patch)
tree2e14896716a8b2186e5dd2bdd3b8237daba0a90a /Makefile.inc1
parent3dbee1749a9122f012195f6d6e5ebd2a64a226a0 (diff)
downloadsrc-test2-03bc68ca091b5f59ae3e8a46874c7b79275381ec.tar.gz
src-test2-03bc68ca091b5f59ae3e8a46874c7b79275381ec.zip
Disable K&R style function definitions for WARNS=6.
Unfortunately there are two slight problems with that: - Yacc and lex might generate code that generates warnings because of this. Require yacc and lex to be rebuilt during bootstrap. I'm not incrementing __FreeBSD_version here, because I assume someone else will do this eventually. - When running `make buildkernel', it uses share/mk from the source treeo to build aicasm. Because aicasm also depends on lex, this would break. Lower WARNS to 5 for now. We should just increment it to 6 again somewhere in the very far future.
Notes
Notes: svn path=/head/; revision=201300
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc17
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 249cf630ae95..a3499f354285 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -940,6 +940,11 @@ _mklocale= usr.bin/mklocale
_sed= usr.bin/sed
.endif
+.if ${BOOTSTRAPPING} < 900006
+_lex= usr.bin/lex
+_yacc= usr.bin/yacc
+.endif
+
.if ${BOOTSTRAPPING} < 700018
_gensnmptree= usr.sbin/bsnmpd/gensnmptree
.endif
@@ -966,6 +971,8 @@ bootstrap-tools:
${_mklocale} \
usr.bin/rpcgen \
${_sed} \
+ ${_lex} \
+ ${_yacc} \
usr.bin/xinstall \
${_gensnmptree} \
usr.sbin/config \