]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
msun: LIBCSRCDIR is too fragile, use ${SRCTOP}/lib/libc instead
authorWarner Losh <imp@FreeBSD.org>
Tue, 5 Sep 2023 20:58:06 +0000 (14:58 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 5 Sep 2023 22:08:02 +0000 (16:08 -0600)
commitb19d8afe4dd205f7d4bfa3282f58b73d504926db
tree09d0decdafb4f115657fa4765627381d06668bb9
parent815b7436a7c6302365b6514194d27d41cb736227
msun: LIBCSRCDIR is too fragile, use ${SRCTOP}/lib/libc instead

LIBCSRCDIR is defined in bsd.libnames.mk, which is read in later in the
Makefile than the line:

.if exists(${LIBCSRCDIR}/${MACHINE_ARCH})

so we test to see if /${MARCHIN_ARCH} exists which it usually doesn't
(but did for me since I mounted 13.2R SD image there).  Move to defining
our own LIBC_SRCTOP in terms of SRCTOP to treat these uniformily.

Sponsored by: Netflix
Reviewed by: sjg
Differential Revision: https://reviews.freebsd.org/D41661
lib/libc/Makefile
lib/msun/Makefile