artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a32b142
)
Build correctly when DESTDIR set
author
niklas
<niklas@openbsd.org>
Sun, 15 Sep 1996 09:55:40 +0000
(09:55 +0000)
committer
niklas
<niklas@openbsd.org>
Sun, 15 Sep 1996 09:55:40 +0000
(09:55 +0000)
gnu/usr.bin/ld/rtld/Makefile
patch
|
blob
|
history
diff --git
a/gnu/usr.bin/ld/rtld/Makefile
b/gnu/usr.bin/ld/rtld/Makefile
index
e4b295f
..
ee876b8
100644
(file)
--- 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} -