aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/rtld
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-04-16 11:31:32 +0000
committerBruce Evans <bde@FreeBSD.org>1997-04-16 11:31:32 +0000
commit9453d60b10f0b985d5c55a1e045419dcb4c0cc6a (patch)
tree97b9c8d9e33403f23f3e053ddb947eb08e2f9f5a /gnu/usr.bin/ld/rtld
parent12d247a783aa2247073c5ec6b10578906362677c (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/ld/rtld')
-rw-r--r--gnu/usr.bin/ld/rtld/Makefile12
1 files changed, 2 insertions, 10 deletions
diff --git a/gnu/usr.bin/ld/rtld/Makefile b/gnu/usr.bin/ld/rtld/Makefile
index 22c5c6561bb6..4177f6bd397a 100644
--- a/gnu/usr.bin/ld/rtld/Makefile
+++ b/gnu/usr.bin/ld/rtld/Makefile
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: Makefile,v 1.23 1997/02/22 15:46:46 peter Exp $
PROG= ld.so
SRCS= mdprologue.S rtld.c malloc.c shlib.c md.c support.c sbrk.c
@@ -7,7 +7,7 @@ LDDIR?= $(.CURDIR)/..
# As there is relocation going on behind GCC's back, don't cache function addresses.
PICFLAG=-fpic -fno-function-cse
CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE) $(PICFLAG) -DRTLD
-LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
+LDFLAGS+=-nostdlib -Wl,-Bshareable -Wl,-Bsymbolic -Wl,-assert -Wl,nosymbolic
ASFLAGS+=-k
DPADD+= ${LIBC:S/c.a/c_pic.a/} ${LIBC:S/c.a/gcc_pic.a/}
LDADD+= -lc_pic -lgcc_pic
@@ -17,12 +17,4 @@ MLINKS= rtld.1 ld.so.1
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
-.if defined(DESTDIR)
-$(PROG):
- $(LD) -o $(PROG) $(LDFLAGS) -nostdlib -L${DESTDIR}/usr/lib $(OBJS) $(LDADD)
-.else
-$(PROG):
- $(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)
-.endif
-
.include <bsd.prog.mk>