git: 87c2aab0a0b3 - main - lib/libcrypt: reinstate CFLAGS+=-I${SRCTOP}/sys/crypto/sha2

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sat, 26 Oct 2024 18:12:03 UTC
The branch main has been updated by fuz:

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

commit 87c2aab0a0b3db2a4690773b869e8cfc8b3ac6c2
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-10-26 14:16:10 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-10-26 18:11:02 +0000

    lib/libcrypt: reinstate CFLAGS+=-I${SRCTOP}/sys/crypto/sha2
    
    This is apparently needed for the cross-build from Linux to succeed.
    
    Fixes:          cb5e41b160838880de7d03100afa02e4edee5a9e
---
 lib/libcrypt/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile
index 5a9eac4c682f..e939bae1bc25 100644
--- a/lib/libcrypt/Makefile
+++ b/lib/libcrypt/Makefile
@@ -1,6 +1,3 @@
-#
-#
-
 SHLIBDIR?=	/lib
 
 .include <src.opts.mk>
@@ -18,7 +15,8 @@ SRCS=		crypt.c misc.c \
 MAN=		crypt.3
 MLINKS=		crypt.3 crypt_get_format.3 crypt.3 crypt_r.3 \
 		crypt.3 crypt_set_format.3
-CFLAGS+=	-I${SRCTOP}/lib/libmd
+CFLAGS+=	-I${SRCTOP}/lib/libmd \
+		-I${SRCTOP}/sys/crypto/sha2
 
 # Pull in the strong crypto, if it is present.
 .if exists(${SRCTOP}/secure/lib/libcrypt) && ${MK_CRYPT} != "no"