add a hack for emips libgcc (32 bit mips with softfloat.)

This commit is contained in:
mrg 2011-07-10 02:39:57 +00:00
parent d51188154b
commit ef65ebf1e0
2 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2011/07/03 08:35:42 mrg Exp $
# $NetBSD: Makefile,v 1.3 2011/07/10 02:39:57 mrg Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@ -13,8 +13,14 @@ LIB= gcc
.if !defined(MKNATIVE_LIBGCC_NEW)
# XXX handle this better?
.if ${MACHINE} == "emips"
G_LIB2ADD_HACK+= ${GNUHOSTDIST}/gcc/config/floatunsidf.c \
${GNUHOSTDIST}/gcc/config/floatunsisf.c
.endif
SRCS+= ${LIB2FUNCS} ${LIB2FUNCS_ST} ${LIB2DIVMOD} \
${G_LIB2ADD:T:S/.asm/.S/} ${G_LIB2ADD_ST} ${LIB1ASMFUNCS}
${G_LIB2ADD_HACK:T:S/.asm/.S/} ${G_LIB2ADD:T:S/.asm/.S/} ${G_LIB2ADD_ST} ${LIB1ASMFUNCS}
.if ${MKPIC} == "no"
SRCS+= ${LIB2_EH}
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2011/06/21 06:02:26 mrg Exp $
# $NetBSD: Makefile,v 1.2 2011/07/10 02:39:57 mrg Exp $
USE_SHLIBDIR= yes
REQUIRETOOLS= yes
@ -23,6 +23,12 @@ LDFLAGS+= -Wl,--version-script=${.OBJDIR}/libgcc.map
.if !defined(MKNATIVE_LIBGCC_NEW)
# XXX handle this better?
.if ${MACHINE_CPU} == "mips" && !(${MKSOFTFLOAT} != "no")
G_LIB2ADD+= ${GNUHOSTDIST}/gcc/config/floatunsidf.c \
${GNUHOSTDIST}/gcc/config/floatunsisf.c
.endif
SRCS+= ${LIB2FUNCS} ${LIB2DIVMOD} ${LIB2_EH} \
${G_LIB2ADD:T:S/.asm/.S/} ${LIB1ASMFUNCS}