aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-08-10 00:10:57 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-08-10 00:10:57 +0000
commit2b720021aa9919a7852f10edcb1278a378923d3b (patch)
tree9856e72488dc14eadbf3b180de3cba7cdb8d968c /Makefile.inc1
parente6191e11f0e32375c35d824b39ffcc8a555c71d9 (diff)
downloadsrc-2b720021aa9919a7852f10edcb1278a378923d3b.tar.gz
src-2b720021aa9919a7852f10edcb1278a378923d3b.zip
Makefile.inc1: Add libl to -legacy as well
libl is needed for config(8), which is a bootstrap-tool. It is possible to build a system WITHOUT_TOOLCHAIN to exclude lex and thus, libl. We still need to support building from this kind of host, though. While here, group the config(8) dependencies together and add a small explanation. These can likely both be scoped more clearly, but this will need some further investigation. Reported by: rgrimes (not WITHOUT_TOOLCHAIN, but provoked investigation) MFC after: immediately
Notes
Notes: svn path=/head/; revision=337559
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc16
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 42d1dccb7c16..26acc97e8478 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1943,13 +1943,17 @@ update: .PHONY
_elftoolchain_libs= lib/libelf lib/libdwarf
.endif
+# libnv and libl are both requirements for config(8), which is an unconditional
+# bootstrap-tool.
+_config_deps= lib/libnv usr.bin/lex/lib
+
legacy: .PHONY
.if ${BOOTSTRAPPING} < ${MINIMUM_SUPPORTED_OSREL} && ${BOOTSTRAPPING} != 0
@echo "ERROR: Source upgrades from versions prior to ${MINIMUM_SUPPORTED_REL} are not supported."; \
false
.endif
-.for _tool in tools/build ${_elftoolchain_libs} lib/libnv
+.for _tool in tools/build ${_elftoolchain_libs} ${_config_deps}
${_+_}@${ECHODIR} "===> ${_tool} (obj,includes,all,install)"; \
cd ${.CURDIR}/${_tool}; \
if [ -z "${NO_OBJWALK}" ]; then ${MAKE} DIRPRFX=${_tool}/ obj; fi; \