From: Andre Noll Date: Mon, 11 Aug 2014 09:13:25 +0000 (+0200) Subject: Install relative links to the soname. X-Git-Tag: v0.1.3~22 X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=commitdiff_plain;h=6f4d0dd1eea49f9edb4e40fe6b121deb442a7565 Install relative links to the soname. On make install, the library is installed to $(libdir)/$(realname) (e.g. /usr/local/lib/libosl.so.0.1.2), and a link is created to map $(linkername) to $(soname) (e.g. /usr/local/lib/libosl.so -> /usr/local/lib/libosl.so.0). This changes the ln command to create a relative link rather than an absolute link. For example, /usr/local/lib/libosl.so now points to libosl.so.0 without the leading directory. This shouldn't matter much but it allows to move both files elsewhere without breaking the link. --- diff --git a/Makefile b/Makefile index 3f12b09..09ad34b 100644 --- a/Makefile +++ b/Makefile @@ -190,7 +190,7 @@ install-man: $(man_pages) install-lib: $(realname) $(headers) $(MKDIR) $(libdir) $(includedir) $(RM) $(libdir)/$(linkername) - $(LN) -s $(libdir)/$(soname) $(libdir)/$(linkername) + $(LN) -s $(soname) $(libdir)/$(linkername) $(INSTALL) -m 755 $(realname) $(libdir) $(INSTALL) -m 644 $(headers) $(includedir)