diff options
author | 1996-09-15 09:55:40 +0000 | |
---|---|---|
committer | 1996-09-15 09:55:40 +0000 | |
commit | 8b8f60abaae1c2944250353d3ba6da41749d9b93 (patch) | |
tree | fdc5f2641166eea3cd43f7d28c4404988e404880 | |
parent | Ok, ok! We now autosense system type. Same compiled kernel works on both (diff) | |
download | wireguard-openbsd-8b8f60abaae1c2944250353d3ba6da41749d9b93.tar.xz wireguard-openbsd-8b8f60abaae1c2944250353d3ba6da41749d9b93.zip |
Build correctly when DESTDIR set
-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} - |