aboutsummaryrefslogtreecommitdiff
path: root/lib/msun
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2022-08-08 15:16:00 +0000
committerGleb Popov <arrowd@FreeBSD.org>2022-09-09 06:54:28 +0000
commit20adba8bc1beb125d5e5ed8f12e747ae79ca6a10 (patch)
treeb45765093cc9fd4d40f020ad37fdabcf1b45b62e /lib/msun
parent1494f4776af32b49e3c5bbdf09d6b2995b374614 (diff)
downloadsrc-20adba8bc1beb125d5e5ed8f12e747ae79ca6a10.tar.gz
src-20adba8bc1beb125d5e5ed8f12e747ae79ca6a10.zip
src.conf: Introduce WITHOUT_MACHDEP knob.
Summary: This knob can be used to make buildsystem prefer generic C implentations of various functions, instead of machine-specific assembler ones. Test Plan: `make buildworld` on amd64 Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D36076 MFC after: 3 days
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/Makefile b/lib/msun/Makefile
index 2382a9ae3fdb..e65e9401cdbf 100644
--- a/lib/msun/Makefile
+++ b/lib/msun/Makefile
@@ -151,7 +151,7 @@ COMMON_SRCS+= catrig.c catrigf.c \
#COMMON_SRCS+= s_fabs.c s_frexp.c s_isnan.c s_ldexp.c s_modf.c
# Exclude the generic versions of what we provide in the MD area.
-.if defined(ARCH_SRCS)
+.if defined(ARCH_SRCS) && ${MK_MACHDEP_OPTIMIZATIONS} != no
.for i in ${ARCH_SRCS}
COMMON_SRCS:= ${COMMON_SRCS:N${i:R}.c}
.endfor