Include sparc_v8 library into sparc64 32-bit compat libc library.

This commit is contained in:
nakayama 2014-07-12 19:21:48 +00:00
parent 847b247653
commit 63bc5e6959
2 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,8 @@
# $NetBSD: Makefile.inc,v 1.14 2011/04/12 03:35:47 mrg Exp $
# $NetBSD: Makefile.inc,v 1.15 2014/07/12 19:21:48 nakayama Exp $
SRCS+= __sigaction14_sigtramp.c __sigtramp2.S
.if ${MACHINE} != "sparc64"
# `source' files built from m4 source
# the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
SRCS+= rem.S sdiv.S udiv.S urem.S
@ -34,3 +35,4 @@ urem.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
@(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
@chmod 444 ${.TARGET}
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.22 2009/12/06 07:12:17 uebayasi Exp $
# $NetBSD: Makefile.inc,v 1.23 2014/07/12 19:21:48 nakayama Exp $
SRCS+= fabs.S modf.S
SRCS+= flt_rounds.c fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c \
@ -20,7 +20,13 @@ SRCS+= sigsetjmp.S
SRCS+= makecontext.c resumecontext.c _lwp.c swapcontext.S
SRCS+= fixunsdfsi.S mul.S umul.S saveregs.S
.if ${MACHINE} == "sparc64"
.PATH: ${NETBSDSRCDIR}/lib/libarch/sparc/v8
SRCS+= sparc_v8.S
.else
SRCS+= mul.S umul.S
.endif
SRCS+= fixunsdfsi.S saveregs.S
SRCS+= bswap16.c bswap32.c bswap64.c
LSRCS.sparc.gen= Lint_swapcontext.c