Use relative paths in symbolic links in installed include directory
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 23 Feb 1993 23:09:10 +0000 (23:09 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 23 Feb 1993 23:09:10 +0000 (23:09 +0000)
From-SVN: r3518

gcc/Makefile.in

index a3a19469f38645e3333d62c7677048f3646dcf75..3c8b3b56db2bfee21bb5553e63b57fc2fd316bf8 100644 (file)
@@ -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