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