aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>1993-02-23 23:09:10 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>1993-02-23 23:09:10 +0000
commit44735512c91eed6880c4de2c01f903c48f6f3013 (patch)
treef513265f675af050d7fdff318a9bfa04ef418a21 /gcc
parent4808d7a7f1ecdf59184343795839c1a7fef00c5e (diff)
downloadgcc-44735512c91eed6880c4de2c01f903c48f6f3013.zip
gcc-44735512c91eed6880c4de2c01f903c48f6f3013.tar.gz
gcc-44735512c91eed6880c4de2c01f903c48f6f3013.tar.bz2
Use relative paths in symbolic links in installed include directory
From-SVN: r3518
Diffstat (limited to 'gcc')
-rw-r--r--gcc/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index a3a1946..3c8b3b5 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1588,7 +1588,7 @@ install-headers: install-include-dir $(INSTALL_HEADERS_DIR) install-assert-h
dest=`ls -ld $(libsubdir)/include/$$i | sed -n 's/.*-> //p'`; \
if expr "$$dest" : "$$dir.*" > /dev/null; then \
rm -f $(libsubdir)/include/$$i; \
- ln -s $(libsubdir)/include`echo "$$dest" | sed "s|$$dir||"` $(libsubdir)/include/$$i; \
+ ln -s `echo $$i | sed "s|/[^/]*|/..|g" | sed 's|/..$$||'``echo "$$dest" | sed "s|$$dir||"` $(libsubdir)/include/$$i; \
fi; \
done; \
fi