git: 567d9fe8adf0 - main - csu: add include path to CFLAGS to be able to find libsys.h

From: Stephen J. Kiernan <stevek_at_FreeBSD.org>
Date: Thu, 19 Sep 2024 19:36:57 UTC
The branch main has been updated by stevek:

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

commit 567d9fe8adf057eb26f57cd615b2a89cd213371a
Author:     Stephen J. Kiernan <stevek@FreeBSD.org>
AuthorDate: 2024-09-19 19:33:52 +0000
Commit:     Stephen J. Kiernan <stevek@FreeBSD.org>
CommitDate: 2024-09-19 19:36:38 +0000

    csu: add include path to CFLAGS to be able to find libsys.h
    
    In order to ensure we get the correct libsys.h, we need to add
    lib/libsys to the includes search path.
---
 lib/csu/Makefile.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc
index 1509a1ece2c3..9903b25b7011 100644
--- a/lib/csu/Makefile.inc
+++ b/lib/csu/Makefile.inc
@@ -22,7 +22,8 @@ ACFLAGS+=	-DLOCORE
 CFLAGS+=	-DSTRIP_FBSDID
 CFLAGS+=	-fno-omit-frame-pointer
 CFLAGS+=	-I${.CURDIR:H}/common \
-		-I${SRCTOP}/lib/libc/include
+		-I${SRCTOP}/lib/libc/include \
+		-I${SRCTOP}/lib/libsys \
 
 CFLAGS_CRTS=	-DSHARED ${PICFLAG}