freebsd-dev/libexec/rtld-aout/Makefile
peter 8e01f767c7 Seperate the Paul Kranenburg a.out rtld stuff into a stand-alone area away
from the gpl ld code.  This is part 2 of something that I began in 1996.
A repository copy has happened behind cvs's back.
1998-06-01 13:00:32 +00:00

18 lines
616 B
Makefile

# $Id: Makefile,v 1.25 1997/11/29 03:32:46 jdp Exp $
PROG= ld.so
SRCS= mdprologue.S rtld.c shlib.c md.c support.c
MAN1= rtld.1
# As there is relocation going on behind GCC's back, don't cache function addresses.
PICFLAG=-fpic -fno-function-cse
CFLAGS+=-I${.CURDIR} -I${.CURDIR}/${MACHINE} ${PICFLAG} -DRTLD -Wall
LDFLAGS+=-nostdlib -Wl,-Bshareable,-Bsymbolic,-assert,nosymbolic
ASFLAGS+=-k
DPADD+= ${LIBC:S/c.a/c_pic.a/} ${LIBC:S/c.a/gcc_pic.a/}
LDADD+= -lc_pic -lgcc_pic
INSTALLFLAGS+= -fschg -C # -C to install as atomically as possible
MLINKS= rtld.1 ld.so.1
.PATH: ${.CURDIR}/${MACHINE}
.include <bsd.prog.mk>