summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorswallace <swallace@FreeBSD.org>1994-09-18 19:41:38 +0000
committerswallace <swallace@FreeBSD.org>1994-09-18 19:41:38 +0000
commit8d67c8cc5d614b2d538a54ec1ba661f2fba20d16 (patch)
tree63beaa28eb31cf5a20a137aef44842dd668df8ae /gnu
parent87257a2b864328c8957740c3d394caddc9a13bc2 (diff)
downloadFreeBSD-src-8d67c8cc5d614b2d538a54ec1ba661f2fba20d16.zip
FreeBSD-src-8d67c8cc5d614b2d538a54ec1ba661f2fba20d16.tar.gz
Add LDDESTDIR to ld command.
Add -I${DESTDIR}/usr/include to cpp command.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/ld/rtld/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/usr.bin/ld/rtld/Makefile b/gnu/usr.bin/ld/rtld/Makefile
index ac6c892..d8c9165 100644
--- a/gnu/usr.bin/ld/rtld/Makefile
+++ b/gnu/usr.bin/ld/rtld/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>
OpenPOWER on IntegriCloud