diff options
author | swallace <swallace@FreeBSD.org> | 1994-09-18 19:41:38 +0000 |
---|---|---|
committer | swallace <swallace@FreeBSD.org> | 1994-09-18 19:41:38 +0000 |
commit | 8d67c8cc5d614b2d538a54ec1ba661f2fba20d16 (patch) | |
tree | 63beaa28eb31cf5a20a137aef44842dd668df8ae /gnu | |
parent | 87257a2b864328c8957740c3d394caddc9a13bc2 (diff) | |
download | FreeBSD-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/Makefile | 8 |
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> |