Makefile.inc revision 1.9 1 # $NetBSD: Makefile.inc,v 1.9 2001/12/20 19:20:03 thorpej Exp $
2
3 SRCS+= rtld_start.S mips_reloc.c
4
5 # XXX Should not be in CPPFLAGS!
6 CPPFLAGS+= -mabicalls -G0 -fPIC
7
8 CPPFLAGS+= -DELFSIZE=32 -I${.CURDIR}
9 CPPFLAGS+= -DRTLD_INHIBIT_COPY_RELOCS
10
11 .if (${MACHINE_ARCH} == "mipseb")
12 # UGH! ld.so.script specifies little-endian; need to override that here
13 LDFLAGS+= -EB
14 .endif
15
16 LDFLAGS+= -Bshareable -Bsymbolic -e .rtld_start
17 LDFLAGS+= --script ${.CURDIR}/arch/mips/ld.so.script
18