HardenedBSD/libexec/rtld-elf/Makefile
Nate Williams 0b8dcbe23c - Set the system immutable flag when installing ld.so to avoid people
accidentally clobbering it.

Submitted by:	numberous people on -current
1999-02-15 05:02:54 +00:00

27 lines
608 B
Makefile

#
# $Id: Makefile,v 1.4 1998/09/04 19:03:57 dfr Exp $
#
PROG= ld-elf.so.1
SRCS= rtld_start.S rtld.c map_object.c malloc.c xmalloc.c debug.c \
reloc.c
NOMAN= true
CFLAGS+= -fpic -Wall -DFREEBSD_ELF -I${.CURDIR}
LDADD+= -lc_pic
.if ${MACHINE_ARCH} == "alpha"
CFLAGS+= -mno-fp-regs
LDFLAGS+= -nostdlib -Wl,-Bshareable,-Bsymbolic -e .rtld_start
.elif ${MACHINE_ARCH} == "i386"
CFLAGS+= -elf
LDFLAGS+= -elf -nostdlib -Wl,-Bshareable,-Bsymbolic
.endif
# Atomic installation with "-C" is very important for this program.
INSTALLFLAGS+= -fschg -C
.PATH: ${.CURDIR}/${MACHINE_ARCH}
.include <bsd.prog.mk>