8 reloc.c rtld.c rtld_lock.c map_object.c \
9 malloc.c xmalloc.c debug.c libmap.c
12 CFLAGS+= -Wall -DFREEBSD_ELF -DIN_RTLD
13 CFLAGS+= -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}
14 LDFLAGS+= -nostdlib -e .rtld_start
19 SYMLINKS= ${BINDIR}/${PROG} /usr/libexec/${PROG}
20 MLINKS= rtld.1 ld-elf.so.1.1 \
24 LDFLAGS+= -shared -Wl,-Bsymbolic
26 LDADD= -lc_pic -lssp_nonshared
28 .if ${MACHINE_ARCH} != "ia64"
29 .if ${MK_SYMVER} == "yes"
30 LIBCDIR= ${.CURDIR}/../../lib/libc
31 VERSION_DEF= ${LIBCDIR}/Versions.def
32 SYMBOL_MAPS= ${.CURDIR}/Symbol.map
33 VERSION_MAP= Version.map
34 LDFLAGS+= -Wl,--version-script=${VERSION_MAP}
36 ${PROG}: ${VERSION_MAP}
38 .if exists(${.CURDIR}/${MACHINE_ARCH}/Symbol.map)
39 SYMBOL_MAPS+= ${.CURDIR}/${MACHINE_ARCH}/Symbol.map
44 .if exists(${.CURDIR}/${MACHINE_ARCH}/Makefile.inc)
45 .include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
48 # Since moving rtld-elf to /libexec, we need to create a symlink.
49 # Fixup the existing binary that's there so we can symlink over it.
51 .if exists(${DESTDIR}/usr/libexec/${PROG})
52 -chflags noschg ${DESTDIR}/usr/libexec/${PROG}
55 .PATH: ${.CURDIR}/${MACHINE_ARCH}
57 .include <bsd.symver.mk>
58 .include <bsd.prog.mk>