diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-09-06 19:09:30 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-09-06 19:09:30 +0000 |
commit | 7876f1c58060284e52d7df556230e67ce61da8e5 (patch) | |
tree | c5ef35742c7ea105ac26838435361fac64f76126 /gnu/usr.bin/ld | |
parent | 0b006e0d1d0a793937d94c79a51b48b58379f211 (diff) |
Use ${CC} to link ld.so, so that it will grok whatever you throw at
it in COPTS/DEBUG.
Diffstat (limited to 'gnu/usr.bin/ld')
-rw-r--r-- | gnu/usr.bin/ld/rtld/Makefile | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gnu/usr.bin/ld/rtld/Makefile b/gnu/usr.bin/ld/rtld/Makefile index 0dfee53a396..5e9cb210181 100644 --- a/gnu/usr.bin/ld/rtld/Makefile +++ b/gnu/usr.bin/ld/rtld/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2000/05/25 21:49:02 deraadt Exp $ +# $OpenBSD: Makefile,v 1.6 2001/09/06 19:09:29 espie Exp $ # $NetBSD: Makefile,v 1.11 1995/10/09 00:11:24 pk Exp $ PROG= ld.so @@ -10,21 +10,13 @@ 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_ARCH) $(PICFLAG) -DRTLD -DLIBC_SCCS -LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic +LDFLAGS+=-nostartfiles -nostdlib -Wl,-Bshareable,-Bsymbolic,-assert,nosymbolic ASFLAGS+=-k LDADD+= -lc_pic BINDIR= /usr/libexec .PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH) ${.CURDIR}/../../../../lib/libc/stdio -.if defined(DESTDIR) -$(PROG): - $(LD) -o $(PROG) $(LDFLAGS) -nostdlib -L${DESTDIR}/usr/lib $(OBJS) $(LDADD) -.else -$(PROG): - $(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD) -.endif - .S.o: ${CPP} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} - |