summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-03-20 11:32:03 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-03-20 11:32:03 +0000
commitbcc2507f7ddc33980e189821ad65482ba8abeebd (patch)
tree1347195c57592e61cebc5a6eb4da74a226b36fc2 /gnu/usr.bin
parentdb8f4c6361dc3e227720b74f14e6a3463046e0f4 (diff)
Reference include directly to avoid $CDPATH clashes.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/gcc/Makefile.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/usr.bin/gcc/Makefile.in b/gnu/usr.bin/gcc/Makefile.in
index c438ac02e29..d8c7610c7de 100644
--- a/gnu/usr.bin/gcc/Makefile.in
+++ b/gnu/usr.bin/gcc/Makefile.in
@@ -2205,7 +2205,7 @@ install-headers: install-include-dir $(INSTALL_HEADERS_DIR) $(INSTALL_ASSERT_H)
# point to the installed directory, not the build directory.
-files=`cd $(libsubdir)/include; find . -type l -print 2>/dev/null`; \
if [ $$? -eq 0 ]; then \
- dir=`cd include; pwd`; \
+ dir=`cd ./include; pwd`; \
for i in $$files; do \
dest=`ls -ld $(libsubdir)/include/$$i | sed -n 's/.*-> //p'`; \
if expr "$$dest" : "$$dir.*" > /dev/null; then \
@@ -2223,7 +2223,7 @@ install-include-dir: install-dir
# Install the include directory using tar.
install-headers-tar: stmp-headers $(STMP_FIXPROTO) install-include-dir
- (cd include; \
+ (cd ./include; \
tar -cf - .; exit 0) | (cd $(libsubdir)/include; tar $(TAROUTOPTS) - )
# /bin/sh on some systems returns the status of the first tar,
# and that can lose with GNU tar which always writes a full block.
@@ -2231,7 +2231,8 @@ install-headers-tar: stmp-headers $(STMP_FIXPROTO) install-include-dir
# Install the include directory using cpio.
install-headers-cpio: stmp-headers $(STMP_FIXPROTO) install-include-dir
- (cd include; find . -print) | (cd include; cpio -pdum $(libsubdir)/include)
+ (cd ./include; \
+ find . -print) | (cd ./include; cpio -pdum $(libsubdir)/include)
# Put assert.h where it won't override GNU libc's assert.h.
# It goes in a dir that is searched after GNU libc's headers;