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

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

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

commit c8119d2d330877dfbe599b92e83cb11c65181ae8
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:33:26 +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 dcf67d5b9ce2..e2e0f3f75ab1 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2767,7 +2767,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