Makefile.inc revision 1.2
1#	$NetBSD: Makefile.inc,v 1.2 1998/03/26 07:36:30 thorpej Exp $
2
3SRCS+=	rtld_start.S mips_reloc.c
4
5CPPFLAGS+= -mabicalls -G0 -fPIC -DELFSIZE=32 -I${.CURDIR}
6
7.if (${MACHINE} == "newsmips")
8# UGH!  ld.so.script specifies little-endian; need to override that here
9LDFLAGS+= -EB
10.endif
11
12LDFLAGS+= -Bshareable -Bsymbolic -e .rtld_start
13LDFLAGS+= --script ${.CURDIR}/mips/ld.so.script
14
15# Link ld.so for backward compatibility with old binaries
16LINKS+=	${DESTDIR}/usr/libexec/${PROG} ${DESTDIR}/usr/libexec/ld.so
17