Merge from vendor branch OPENSSH:
[dragonfly.git] / libexec / rtld-aout / Makefile
1 # $FreeBSD: src/libexec/rtld-aout/Makefile,v 1.29.2.2 2002/07/17 13:25:18 ru Exp $
2 # $DragonFly: src/libexec/rtld-aout/Attic/Makefile,v 1.2 2003/06/17 04:27:08 dillon Exp $
3 PROG=   ld.so
4 SRCS=   mdprologue.S rtld.c shlib.c md.c support.c
5 MAN=    rtld.1aout
6 # As there is relocation going on behind GCC's back, don't cache function addresses.
7 PICFLAG=-fpic -fno-function-cse
8 CFLAGS+=-I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} ${PICFLAG} -DRTLD -Wall
9 LDFLAGS+=-nostdlib -Wl,-Bshareable,-Bsymbolic,-assert,nosymbolic
10 ASFLAGS+=-k
11 DPADD+= ${LIBC:S/c.a/c_pic.a/} ${LIBC:S/c.a/gcc_pic.a/}
12 LDADD+= -lc_pic -lgcc_pic
13 INSTALLFLAGS=   -fschg -C       # -C to install as atomically as possible
14 MLINKS= rtld.1aout ld.so.1aout
15
16 .PATH: ${.CURDIR}/${MACHINE_ARCH}
17
18 .include <bsd.prog.mk>