For m68k, do not compile in {,u}divmodsi4 also, that are not used by

codes generated by gcc (confirmed not only for kernel, but also all
executables and libraries for userland).

Fix build failure for MODULAR kernel, noticed by mlelstv.
This commit is contained in:
rin 2020-04-24 00:22:57 +00:00
parent dc0dccab6b
commit be9cf2dcdf
1 changed files with 3 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.compiler-rt,v 1.11 2020/04/23 03:09:18 rin Exp $
# $NetBSD: Makefile.compiler-rt,v 1.12 2020/04/24 00:22:57 rin Exp $
COMPILER_RT_SRCDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist
@ -62,17 +62,13 @@ GENERIC_SRCS+= \
ctzsi2.c
.endif
.if ${MACHINE_CPU} != "aarch64" && ${MACHINE} != "alpha"
GENERIC_SRCS+= \
divmodsi4.c \
udivmodsi4.c
.endif
.if ${MACHINE_CPU} != "aarch64" && ${MACHINE} != "alpha" && \
${MACHINE_ARCH} != "m68k"
GENERIC_SRCS+= \
divmodsi4.c \
divsi3.c \
modsi3.c \
udivmodsi4.c \
udivsi3.c \
umodsi3.c
.endif