aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/Makefile
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1998-09-04 19:03:57 +0000
committerDoug Rabson <dfr@FreeBSD.org>1998-09-04 19:03:57 +0000
commit13575fc46f0ff13172a820b6fcd3626f6de7263a (patch)
tree04f25901a8758c17861c29f9c1bdfa732e92915b /libexec/rtld-elf/Makefile
parent26cdc317be4712a90683fd31ce92741741943c9c (diff)
Notes
Diffstat (limited to 'libexec/rtld-elf/Makefile')
-rw-r--r--libexec/rtld-elf/Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index f2067117a7234..e56516101c50f 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -1,17 +1,25 @@
#
-# $Id: Makefile,v 1.2 1998/04/30 07:47:58 dfr Exp $
+# $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
+SRCS= rtld_start.S rtld.c map_object.c malloc.c xmalloc.c debug.c \
+ reloc.c
NOMAN= true
-CFLAGS+= -elf -fpic -DFREEBSD_ELF
-CFLAGS+= -Wall
-LDFLAGS+= -elf -nostdlib -Wl,-Bshareable,-Bsymbolic
+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}
+.PATH: ${.CURDIR}/${MACHINE_ARCH}
.include <bsd.prog.mk>