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