mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
13575fc46f
Submitted by: John Birrell <jb@cimlogic.com.au> (with extra hacks by me) Obtained from: Probably NetBSD
26 lines
600 B
Makefile
26 lines
600 B
Makefile
#
|
|
# $Id: Makefile,v 1.3 1998/08/17 04:59:15 jdp Exp $
|
|
#
|
|
|
|
PROG= ld-elf.so.1
|
|
SRCS= rtld_start.S rtld.c map_object.c malloc.c xmalloc.c debug.c \
|
|
reloc.c
|
|
NOMAN= true
|
|
CFLAGS+= -fpic -Wall -DFREEBSD_ELF -I${.CURDIR}
|
|
LDADD+= -lc_pic
|
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
CFLAGS+= -mno-fp-regs
|
|
LDFLAGS+= -nostdlib -Wl,-Bshareable,-Bsymbolic -e .rtld_start
|
|
.elif ${MACHINE_ARCH} == "i386"
|
|
CFLAGS+= -elf
|
|
LDFLAGS+= -elf -nostdlib -Wl,-Bshareable,-Bsymbolic
|
|
.endif
|
|
|
|
# Atomic installation with "-C" is very important for this program.
|
|
INSTALLFLAGS+= -C
|
|
|
|
.PATH: ${.CURDIR}/${MACHINE_ARCH}
|
|
|
|
.include <bsd.prog.mk>
|