blob: a9a38c3f23d25eb46cac8b6af82eb78b68984061 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# $OpenBSD: Makefile,v 1.1 2000/06/13 03:33:55 rahnds Exp $
CFLAGS += -I${.CURDIR} -DNO_UNDERSCORE -DVERBOSE_DLINKER \
-DUSE_CACHE -D__PIC__ -I${.CURDIR}/${MACHINE_ARCH}
SRCS= ldasm.S loader.c library.c resolve.c dlfcn.c dl_printf.c rtld_machine.c
PROG= ld.so
MAN= ld.so.8
BINDIR=/usr/libexec
INSTALL_STRIP=
.PATH: ${.CURDIR}/${MACHINE_ARCH}
ELF_LDFLAGS=--shared # using GNU ld
$(PROG):
$(LD) -x -e _dl_start $(ELF_LDFLAGS) -o $(PROG) $(OBJS)
.include <bsd.prog.mk>
|