5 reloc.c rtld.c rtld_lock.c rtld_printf.c map_object.c \
6 malloc.c xmalloc.c debug.c libmap.c
9 SYMLINKS
= ${BINDIR}/${PROG} /usr
/libexec
/${PROG}
12 # DO NOT USE -static, this is a special case
15 # To activate LD_DEBUG functionality, define ENABLE_DEBUG
16 # e.g. make -DENABLE_DEBUG
18 # for now do not let the use of -flto
25 CFLAGS
+= -I
${.CURDIR
}/${MACHINE_ARCH} -I
${.CURDIR
} -D__thread
=
26 CFLAGS
+= -I
${.CURDIR
}/..
/..
/lib
/csu
/common
27 LDFLAGS
+= -nostdlib
-e .rtld_start
-Wl
,--no-undefined
32 MLINKS
= rtld
.1 ld-elf.so
.1.1
33 MLINKS
+= rtld
.1 ld-elf.so
.2.1
34 MLINKS
+= rtld
.1 _rtld_functrace
.3
36 .if
!defined
(NO_SYMVER
)
37 VERSION_DEF
= ${.CURDIR
}/..
/..
/lib
/libc
/Versions.def
38 SYMBOL_MAPS
= ${.CURDIR
}/Symbol.map
39 VERSION_MAP
= Version.map
40 LDFLAGS
+= -Wl
,--version-script
=${VERSION_MAP}
42 rtld.c
: ${VERSION_MAP}
44 .if exists
(${.CURDIR
}/${MACHINE_ARCH}/Symbol.map
)
45 SYMBOL_MAPS
+= ${.CURDIR
}/${MACHINE_ARCH}/Symbol.map
49 .if exists
(${.CURDIR
}/${MACHINE_ARCH}/Makefile.inc
)
50 .
include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
54 LDFLAGS
+= -shared
-Wl
,-Bsymbolic
55 DPADD
= ${.OBJDIR
}/..
/..
/lib
/libc_rtld
/libc_rtld_pic.a
56 LDADD
= -L
${.OBJDIR
}/..
/..
/lib
/libc_rtld
-lc_rtld_pic
62 # Since moving rtld-elf to /libexec, we need to create a symlink.
63 # Fixup the existing binary that's there so we can symlink over it.
65 .if exists
(${DESTDIR}/usr
/libexec
/${PROG})
66 chflags
-h noschg
${DESTDIR}/usr
/libexec
/${PROG}
69 .PATH
: ${.CURDIR
}/${MACHINE_ARCH}
71 .
include <bsd.symver.mk
>
72 .
include <bsd.prog.mk
>