If MACHINE_ARCH is powerpc and we HAVE_GCC3, add crtsaveres.o to the

endfile spec.
This commit is contained in:
thorpej 2003-03-30 00:35:07 +00:00
parent 40e1466e08
commit 44d9add676
2 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.lib.mk,v 1.212 2002/11/22 06:44:56 thorpej Exp $
# $NetBSD: bsd.lib.mk,v 1.213 2003/03/30 00:35:07 thorpej Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.include <bsd.init.mk>
@ -166,8 +166,14 @@ MKSHLIBOBJS= no
SHLIB_SOVERSION= ${SHLIB_MAJOR}
SHLIB_SHFLAGS= -soname lib${LIB}.so.${SHLIB_SOVERSION}
SHLIB_LDSTARTFILE?= ${DESTDIR}/usr/lib/crti.o ${DESTDIR}/usr/lib/crtbeginS.o
# Some platforms require additional endfile support.
.if ${MACHINE_ARCH} == "powerpc" && defined(HAVE_GCC3)
SHLIB_LDENDFILE?= ${DESTDIR}/usr/lib/crtsavres.o \
${DESTDIR}/usr/lib/crtendS.o ${DESTDIR}/usr/lib/crtn.o
.else
SHLIB_LDENDFILE?= ${DESTDIR}/usr/lib/crtendS.o ${DESTDIR}/usr/lib/crtn.o
.endif
.endif
CFLAGS+= ${COPTS}
FFLAGS+= ${FOPTS}

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.prog.mk,v 1.164 2003/02/22 04:46:08 uwe Exp $
# $NetBSD: bsd.prog.mk,v 1.165 2003/03/30 00:35:07 thorpej Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.include <bsd.init.mk>
@ -24,7 +24,12 @@ LIBCRTBEGIN= ${DESTDIR}/usr/lib/crti.o ${DESTDIR}/usr/lib/crtbegin.o
.MADE: ${LIBCRTBEGIN}
.endif
.ifndef LIBCRTEND
.if ${MACHINE_ARCH} == "powerpc" && defined(HAVE_GCC3)
LIBCRTEND= ${DESTDIR}/usr/lib/crtsavres.o \
${DESTDIR}/usr/lib/crtend.o ${DESTDIR}/usr/lib/crtn.o
.else
LIBCRTEND= ${DESTDIR}/usr/lib/crtend.o ${DESTDIR}/usr/lib/crtn.o
.endif
.MADE: ${LIBCRTEND}
.endif
_SHLINKER= ${SHLINKDIR}/ld.elf_so