git: d49c205d3b38 - stable/14 - Makefile.inc1: Make sure mandoc bootstrap tool depends on libz

From: Jessica Clarke <jrtc27_at_FreeBSD.org>
Date: Thu, 05 Nov 2026 00:35:29 UTC
The branch stable/14 has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=d49c205d3b38e036938b0709a760a4ae5f2ce432

commit d49c205d3b38e036938b0709a760a4ae5f2ce432
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2026-10-29 00:45:01 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2026-11-05 00:35:04 +0000

    Makefile.inc1: Make sure mandoc bootstrap tool depends on libz
    
    It links against both libopenbsd and libz, so reflect this in the
    bootstrap tool's dependencies in case of races from highly-parallel
    builds.
    
    Reported by:    jkh
    MFC after:      1 week
    
    (cherry picked from commit 1dbcc7ee92c427480802cd1a40e1a1e3395d9bac)
---
 Makefile.inc1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.inc1 b/Makefile.inc1
index d2952a0efc7a..acebaa680a72 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2603,7 +2603,7 @@ ${_bt}-${_tool}: ${_bt}-usr.bin/yacc ${_bt_lex_depend}
 .endfor
 .endif
 
-${_bt}-usr.bin/mandoc: ${_bt}-lib/libopenbsd
+${_bt}-usr.bin/mandoc: ${_bt}-lib/libopenbsd ${_bt}-lib/libz
 
 # The tools listed in _basic_bootstrap_tools will generally not be
 # bootstrapped unless BOOTSTRAP_ALL_TOOL is set. However, when building on a