Module Name: src
Committed By: cjep
Date: Thu May 27 08:41:35 UTC 2021
Modified Files:
src/tools: Makefile
src/tools/date: Makefile
Log Message:
If we are building date earlier, we need to use an uninstalled copy
of host-mkdep and libnbcompat otherwise the build process looks for
tools that might not be there yet (e.g. fresh build).
Reviewed by martin.
To generate a diff of this commit:
cvs rdiff -u -r1.210 -r1.211 src/tools/Makefile
cvs rdiff -u -r1.1 -r1.2 src/tools/date/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/Makefile
diff -u src/tools/Makefile:1.210 src/tools/Makefile:1.211
--- src/tools/Makefile:1.210 Wed May 26 20:19:15 2021
+++ src/tools/Makefile Thu May 27 08:41:35 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.210 2021/05/26 20:19:15 christos Exp $
+# $NetBSD: Makefile,v 1.211 2021/05/27 08:41:35 cjep Exp $
.include <bsd.own.mk>
.include <bsd.endian.mk>
@@ -80,13 +80,17 @@ LINT_BITS= lint lint2
# XXX .ORDER does not work when multiple targets are passed on the
# make command line without "-j", so use dependencies in addition to .ORDER.
#
-.ORDER: dependall-host-mkdep dependall-compat dependall-binstall
+.ORDER: dependall-host-mkdep dependall-compat dependall-binstall \
+ dependall-date
.if make(dependall-host-mkdep) && make(dependall-compat)
dependall-compat: dependall-host-mkdep
.endif
.if make(dependall-compat) && make(dependall-binstall)
dependall-binstall: dependall-compat
.endif
+.if make(dependall-date)
+dependall-date: dependall-host-mkdep dependall-compat
+.endif
# Dependencies in SUBDIR below ordered to maximize parallel ability.
# See above for special treatment for host-mkdep, compat, and binstall.
Index: src/tools/date/Makefile
diff -u src/tools/date/Makefile:1.1 src/tools/date/Makefile:1.2
--- src/tools/date/Makefile:1.1 Wed May 26 20:19:15 2021
+++ src/tools/date/Makefile Thu May 27 08:41:35 2021
@@ -1,6 +1,22 @@
-# $NetBSD: Makefile,v 1.1 2021/05/26 20:19:15 christos Exp $
+# $NetBSD: Makefile,v 1.2 2021/05/27 08:41:35 cjep Exp $
+
+.include <bsd.hostinit.mk>
HOSTPROGNAME= ${_TOOL_PREFIX}date
HOST_SRCDIR= bin/date
+# Prevent Makefile.host from trying to use the version of libnbcompat
+# from ${TOOLDIR}.
+NOCOMPATLIB=
+
+# Use uninstalled copy of host-mkdep
+HOST_MKDEP_OBJ!= cd ${.CURDIR}/../host-mkdep && ${PRINTOBJDIR}
+HOST_MKDEP= ${HOST_MKDEP_OBJ}/host-mkdep
+MKDEP= ${HOST_MKDEP}
+
+# Use uninstalled copy of libnbcompat and associated *.h files
+COMPATLIB_UNINSTALLED= yes
+COMPATOBJ!= cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR}
+.-include "${COMPATOBJ}/defs.mk"
+
.include "${.CURDIR}/../Makefile.host"