diff options
| author | Gleb Popov <arrowd@FreeBSD.org> | 2023-01-10 10:17:01 +0000 |
|---|---|---|
| committer | Gleb Popov <arrowd@FreeBSD.org> | 2023-01-12 19:49:59 +0000 |
| commit | b83b87f53e73f4d29e094eb89141b251c3272ddd (patch) | |
| tree | 30efaed71cc4ea93f4704a5d3f2ca9aa499b3061 | |
| parent | 71a44d641fe0b06d873b72c0faa06849e1d9c66f (diff) | |
| download | src-b83b87f53e73f4d29e094eb89141b251c3272ddd.tar.gz src-b83b87f53e73f4d29e094eb89141b251c3272ddd.zip | |
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)
| -rw-r--r-- | lib/libc/string/Makefile.inc | 7 |
1 files changed, 6 insertions, 1 deletions
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 \ |
