Module Name: src
Committed By: riastradh
Date: Thu May 9 19:54:38 UTC 2024
Modified Files:
src/lib/libm/compiler_rt: Makefile.inc
Log Message:
libm: No divtc3.c or multc3.c in sparc64's compat sparc library.
compat/sparc64/sparc/bsd.sparc.mk doesn't define LIBC_MACHINE_CPU,
only LIBC_MACHINE_ARCH, so when the compat build gets to this
conditional, LIBC_MACHINE_CPU is just MACHINE_CPU, i.e., sparc64.
Since there's no `sparc64el' or `sparc64hf-el' that we need to
canonicalize by MACHINE_ARCH -> MACHINE_CPU, just use
LIBC_MACHINE_ARCH here.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/compiler_rt/Makefile.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libm/compiler_rt/Makefile.inc
diff -u src/lib/libm/compiler_rt/Makefile.inc:1.11 src/lib/libm/compiler_rt/Makefile.inc:1.12
--- src/lib/libm/compiler_rt/Makefile.inc:1.11 Wed Jun 16 05:21:08 2021
+++ src/lib/libm/compiler_rt/Makefile.inc Thu May 9 19:54:38 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.11 2021/06/16 05:21:08 rin Exp $
+# $NetBSD: Makefile.inc,v 1.12 2024/05/09 19:54:38 riastradh Exp $
COMPILER_RT_DIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt
COMPILER_RT_SRCDIR= ${COMPILER_RT_DIR}/dist
@@ -24,7 +24,7 @@ GENERIC_SRCS+= \
divsc3.c \
divxc3.c
-.if ${MACHINE_CPU} == "powerpc" || ${LIBC_MACHINE_CPU:U} == "sparc64" || ${LIBC_MACHINE_CPU:U} == "aarch64"
+.if ${MACHINE_CPU} == "powerpc" || ${LIBC_MACHINE_ARCH:U} == "sparc64" || ${LIBC_MACHINE_CPU:U} == "aarch64"
GENERIC_SRCS+= \
divtc3.c \
multc3.c