git: 805c5004fa86 - main - tools/build: stage stdckdint.h's dependencies for non-FreeBSD hosts
Mark Johnston <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.src,gmane.os.freebsd.current.scm |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=805c5004fa86e26486175cd3a0bb253dcb8ec7e0 commit 805c5004fa86e26486175cd3a0bb253dcb8ec7e0 Author: Abhijeet Sharma <[email protected]> AuthorDate: 2026-08-19 12:19:27 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2026-08-19 12:19:38 +0000 tools/build: stage stdckdint.h's dependencies for non-FreeBSD hosts 37bd69d43c7 gave stdckdint.h two new includes, <sys/_visible.h> and <sys/ckdint.h>. Neither reaches a non-FreeBSD host: _visible.h is staged only under ${.MAKE.OS} == "FreeBSD" and ckdint.h is not staged at all, so the libc bootstrap fails on reallocarray.o when cross-building from macOS. Both headers are self-contained; stage them alongside stdckdint.h. Fixes: 37bd69d43c7 ("sys: Add sys/ckdint.h") Reviewed by: rpaulo, markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D58943 --- tools/build/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build/Makefile b/tools/build/Makefile index e7af3129730b..90fb93a5196a 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -87,6 +87,10 @@ SRCS+= reallocarray.c .if !exists(${HOST_INCLUDE_ROOT}/stdckdint.h) INCS+= stdckdint.h +SYSINCS+= ${SRCTOP}/sys/sys/ckdint.h +.if ${.MAKE.OS} != "FreeBSD" +SYSINCS+= ${SRCTOP}/sys/sys/_visible.h +.endif .endif .if exists(${HOST_INCLUDE_ROOT}/sys/stat.h)