summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-10-05 17:45:13 +0000
committerian <ian@FreeBSD.org>2015-10-05 17:45:13 +0000
commit9dfa64e182dafd1ee7efd651d3ec0028cca55a0c (patch)
tree78edb1e29e34a995b1b626c8b92c9de0dff878d1
parent949b203cbe48e9bb3040c9c68577fa6e336ed58e (diff)
downloadFreeBSD-src-9dfa64e182dafd1ee7efd651d3ec0028cca55a0c.zip
FreeBSD-src-9dfa64e182dafd1ee7efd651d3ec0028cca55a0c.tar.gz
The latest version of lex requires the latest m4 to build, add a dependency
when running the build-tools stage. The requirement is due to the -P flag used when running m4 from usr.bin/lex Makefile to generate skel.c. With the old m4 that fails and the failure is ignored, resulting in an empty(-ish) skel.c, which leads to later build failures when the misconfigured new lex tool is run. This enables building -current (and 10-stable after MFC) on a stable-8 system again. MFC after: 3 days
-rw-r--r--Makefile.inc12
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 389950c..e2c967d 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1322,6 +1322,8 @@ _cat= bin/cat
.if ${BOOTSTRAPPING} < 1000033
_lex= usr.bin/lex
+
+${_bt}-usr.bin/lex: ${_bt}-usr.bin/m4
.endif
# r277259 crunchide: Correct 64-bit section header offset
OpenPOWER on IntegriCloud