diff options
| author | rin <rin@NetBSD.org> | 2020-04-23 03:09:18 +0000 |
|---|---|---|
| committer | rin <rin@NetBSD.org> | 2020-04-23 03:09:18 +0000 |
| commit | 6c448ad9e0a18d1c69dbee4b6e076deac25d4799 (patch) | |
| tree | e99601ea49e6c9d9f523f528675834808375aa62 /sys/lib | |
| parent | fda9c6fe68c69c7d047f59498a97889276c9680b (diff) | |
For m68k, do not compile in {,u}divsi3 and {,u}modsi3 since codes
generated by gcc do not depend on them.
We should not have unused functions in libkern for MODULAR.
Diffstat (limited to 'sys/lib')
| -rw-r--r-- | sys/lib/libkern/Makefile.compiler-rt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/lib/libkern/Makefile.compiler-rt b/sys/lib/libkern/Makefile.compiler-rt index b06d93bfa9c..c24ec7dd5da 100644 --- a/sys/lib/libkern/Makefile.compiler-rt +++ b/sys/lib/libkern/Makefile.compiler-rt @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.compiler-rt,v 1.10 2019/09/29 23:44:59 mrg Exp $ +# $NetBSD: Makefile.compiler-rt,v 1.11 2020/04/23 03:09:18 rin Exp $ COMPILER_RT_SRCDIR= ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist @@ -65,9 +65,14 @@ GENERIC_SRCS+= \ .if ${MACHINE_CPU} != "aarch64" && ${MACHINE} != "alpha" GENERIC_SRCS+= \ divmodsi4.c \ + udivmodsi4.c +.endif + +.if ${MACHINE_CPU} != "aarch64" && ${MACHINE} != "alpha" && \ + ${MACHINE_ARCH} != "m68k" +GENERIC_SRCS+= \ divsi3.c \ modsi3.c \ - udivmodsi4.c \ udivsi3.c \ umodsi3.c .endif |
