From 6f4d0dd1eea49f9edb4e40fe6b121deb442a7565 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 11 Aug 2014 11:13:25 +0200 Subject: [PATCH 1/1] 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2