diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-09-15 09:55:41 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-09-15 09:55:41 +0000 |
commit | 05bce12013b8fec9a35687f109157d5f386952e2 (patch) | |
tree | b1dccc6a14405411696b785087273a99217c61a0 /gnu | |
parent | 8ee68b094f476fa26e6694ad8bbf872386ed6bf5 (diff) |
Build correctly when DESTDIR set
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/ld/rtld/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/ld/rtld/Makefile b/gnu/usr.bin/ld/rtld/Makefile index e4b295f7293..ee876b8c532 100644 --- a/gnu/usr.bin/ld/rtld/Makefile +++ b/gnu/usr.bin/ld/rtld/Makefile @@ -17,8 +17,13 @@ MLINKS= rtld.1 ld.so.1 .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} - |