git: 6fc69ba38cfc - stable/13 - csu: add crtbrand.o dependency on sys/param.h

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Wed, 14 Feb 2024 17:17:32 UTC
The branch stable/13 has been updated by emaste:

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

commit 6fc69ba38cfc9f8fbcd5096a8911e80608bf9c4f
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-01-12 15:01:49 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-02-14 17:16:35 +0000

    csu: add crtbrand.o dependency on sys/param.h
    
    __FreeBSD_version is recorded in *crt1.o and crti.o via crtbrand.o.  Add
    an explicit dependency to pick up __FreeBSD_version bumps.
    
    Additional changes are required to fully plumb *crt1.o dependencies
    through the build.
    
    Reported by:    bapt
    Reviewed by:    bapt
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D43417
    
    (cherry picked from commit ed3563b0ac31d854bf907d4d847ac0195ec9637b)
    (cherry picked from commit 090674a3dbf88956f097a3f7e8d9ca1b33aee4ad)
---
 lib/csu/Makefile.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc
index 83926a211eea..906c15c9b4bc 100644
--- a/lib/csu/Makefile.inc
+++ b/lib/csu/Makefile.inc
@@ -55,6 +55,9 @@ Scrt1.o: Scrt1_c.o ${CRT1OBJS}
 	${OBJCOPY} --localize-symbol _start1 ${.TARGET}
 .endif
 
+# __FreeBSD_version is recorded in crt1.o et al via crtbrand.
+crtbrand.o: ${SRCTOP}/sys/sys/param.h
+
 crtbegin.o: crtbegin.c
 crtbeginS.o: crtbegin.c
 crtbeginT.o: crtbegin.c