From: niklas Date: Sun, 15 Sep 1996 09:55:40 +0000 (+0000) Subject: Build correctly when DESTDIR set X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8b8f60abaae1c2944250353d3ba6da41749d9b93;p=openbsd Build correctly when DESTDIR set --- 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} -