aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-09-11 14:46:44 -0400
committerMark Adler <madler@alumni.caltech.edu>2011-09-11 12:21:10 -0700
commitae1de165d7133d6ebe9a69b10abdc952d877b6ae (patch)
treebd3d647d39c427c03c1fa5c8dd70c5734f1ae80b
parent06223a362e1855302be908e9ececb3c6c90be8ca (diff)
downloadzlib-ae1de165d7133d6ebe9a69b10abdc952d877b6ae.tar.gz
zlib-ae1de165d7133d6ebe9a69b10abdc952d877b6ae.tar.bz2
zlib-ae1de165d7133d6ebe9a69b10abdc952d877b6ae.zip
use relative symlinks for shared libs
The DESTDIR should not be encoded into symlinks as it is only a temporary path. Further, since we install the symlinks into the same dir as the files, let's use relative links so that they can always resolve. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 94d9c08..b7ba2a7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -176,8 +176,8 @@ install-libs: $(LIBS)
176 chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV); \ 176 chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV); \
177 echo "chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV)"; \ 177 echo "chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV)"; \
178 rm -f $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \ 178 rm -f $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \
179 ln -s $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB); \ 179 ln -s $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB); \
180 ln -s $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \ 180 ln -s $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \
181 ($(LDCONFIG) || true) >/dev/null 2>&1; \ 181 ($(LDCONFIG) || true) >/dev/null 2>&1; \
182 fi 182 fi
183 cp zlib.3 $(DESTDIR)$(man3dir) 183 cp zlib.3 $(DESTDIR)$(man3dir)