From: Ian Lance Taylor Date: Tue, 23 Feb 1993 23:09:10 +0000 (+0000) Subject: Use relative paths in symbolic links in installed include directory X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44735512c91eed6880c4de2c01f903c48f6f3013;p=gcc.git Use relative paths in symbolic links in installed include directory From-SVN: r3518 --- diff --git a/gcc/Makefile.in b/gcc/Makefile.in index a3a19469f38..3c8b3b56db2 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