git: 2c02bfb4e757 - stable/15 - lib/msun: move the calculation of LIBC_SRCTOP earlier
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Sep 2026 00:45:08 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=2c02bfb4e7570ce7a2dd7c18427a144b1ed3b372
commit 2c02bfb4e7570ce7a2dd7c18427a144b1ed3b372
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-09-06 23:23:45 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-09-14 00:44:41 +0000
lib/msun: move the calculation of LIBC_SRCTOP earlier
(cherry picked from commit b45fd24a3ca666fbb1c754d9de94a9b33fa7949e)
---
lib/msun/Makefile | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lib/msun/Makefile b/lib/msun/Makefile
index 53c80eabc450..8ebb451a1fe0 100644
--- a/lib/msun/Makefile
+++ b/lib/msun/Makefile
@@ -10,6 +10,11 @@
#
PACKAGE= clibs
+
+# LIBCSRCDIR is defined lazily, so can't be used for exists() below
+LIBC_SRCTOP=${SRCTOP}/lib/libc
+# Location of fpmath.h and _fpmath.h
+
ARCH_SUBDIR= ${MACHINE_CPUARCH:S/i386/i387/}
.include "${ARCH_SUBDIR}/Makefile.inc"
@@ -99,10 +104,6 @@ COMMON_SRCS= b_tgamma.c \
COMMON_SRCS+= s_asinpi.c s_asinpif.c s_atanpi.c s_atanpif.c \
s_cospi.c s_cospif.c s_sinpi.c s_sinpif.c s_tanpi.c s_tanpif.c
-# LIBCSRCDIR is defined lazily, so can't be used for exists() below
-LIBC_SRCTOP=${SRCTOP}/lib/libc
-# Location of fpmath.h and _fpmath.h
-
# Pick the current architecture directory for libc. In general, this is named
# MACHINE_CPUARCH, but some ABIs are different enough to require their own libc,
# so allow a directory named MACHINE_ARCH to override this (though treat