aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-aout
diff options
context:
space:
mode:
authorSteven Wallace <swallace@FreeBSD.org>1994-09-18 19:41:38 +0000
committerSteven Wallace <swallace@FreeBSD.org>1994-09-18 19:41:38 +0000
commit504e8b978bea7d257cf661b47db95362a8253bae (patch)
tree63beaa28eb31cf5a20a137aef44842dd668df8ae /libexec/rtld-aout
parent893f3712e53b93281b1bf116648d34051394f301 (diff)
downloadsrc-504e8b978bea7d257cf661b47db95362a8253bae.tar.gz
src-504e8b978bea7d257cf661b47db95362a8253bae.zip
Add LDDESTDIR to ld command.
Add -I${DESTDIR}/usr/include to cpp command.
Notes
Notes: svn path=/head/; revision=2856
Diffstat (limited to 'libexec/rtld-aout')
-rw-r--r--libexec/rtld-aout/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/libexec/rtld-aout/Makefile b/libexec/rtld-aout/Makefile
index ac6c892ec918..d8c91654e405 100644
--- a/libexec/rtld-aout/Makefile
+++ b/libexec/rtld-aout/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.11 1994/08/26 19:11:14 wollman Exp $
+# $Id: Makefile,v 1.12 1994/08/28 18:48:32 bde Exp $
PROG= ld.so
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c
@@ -19,9 +19,13 @@ INSTALLFLAGS+= -fschg
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
$(PROG): ${OBJS} ${DPADD}
- $(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)
+ $(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDDESTDIR) $(LDADD)
.S.o:
+.if defined(DESTDIR)
+ ${CPP} -I${DESTDIR}/usr/include ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
+.else
${CPP} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
+.endif
.include <bsd.prog.mk>