git: b83b87f53e73 - stable/13 - libc: Fix build with WITHOUT_MACHDEP_OPTIMIZATIONS=YES set.

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Thu, 12 Jan 2023 19:50:21 UTC
The branch stable/13 has been updated by arrowd (ports committer):

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

commit b83b87f53e73f4d29e094eb89141b251c3272ddd
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-01-10 10:17:01 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-01-12 19:49:59 +0000

    libc: Fix build with WITHOUT_MACHDEP_OPTIMIZATIONS=YES set.
    
    Test Plan: `make buildword WITHOUT_MACHDEP_OPTIMIZATIONS=YES` on 14-CURRENT and 13-STABLE
    
    Reviewed by: emaste
    
    Differential Revision: https://reviews.freebsd.org/D38017
    
    PR:             266900
    (cherry picked from commit 016e46fd869ebf9891ca4b2cf1d22b337717a8c8)
---
 lib/libc/string/Makefile.inc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/libc/string/Makefile.inc b/lib/libc/string/Makefile.inc
index b06731386c41..a675f7dbecca 100644
--- a/lib/libc/string/Makefile.inc
+++ b/lib/libc/string/Makefile.inc
@@ -1,7 +1,10 @@
 #	@(#)Makefile.inc	8.1 (Berkeley) 6/4/93
 # $FreeBSD$
 
-.PATH: ${LIBC_SRCTOP}/${LIBC_ARCH}/string ${LIBC_SRCTOP}/string
+.if ${MK_MACHDEP_OPTIMIZATIONS} != "no"
+.PATH: ${LIBC_SRCTOP}/${LIBC_ARCH}/string
+.endif
+.PATH: ${LIBC_SRCTOP}/string
 .PATH: ${SRCTOP}/sys/libkern
 
 CFLAGS+= -I${LIBC_SRCTOP}/locale
@@ -30,8 +33,10 @@ MISRCS+=bcmp.c bcopy.c bzero.c explicit_bzero.c \
 SYM_MAPS+=	${LIBC_SRCTOP}/string/Symbol.map
 
 
+.if ${MK_MACHDEP_OPTIMIZATIONS} != "no"
 # machine-dependent string sources
 .sinclude "${LIBC_SRCTOP}/${LIBC_ARCH}/string/Makefile.inc"
+.endif
 
 MAN+=	bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \
 	memcmp.3 memcpy.3 memmem.3 memmove.3 memset.3 strcasecmp.3 strcat.3 \