Skip to contentSkip to conversation

libvolume_id: Make relative symlink when $(libdir) =

PATCH New Dan Nicholson 1 participant 1 message Oct 26, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libvolume_id: Make relative symlink when $(libdir) =

When the .so link is not in the same directory as the library, there is no reason to make an absolute symbolic link.

---
 extras/volume_id/lib/Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
extras/volume_id/lib/Makefile +4 -0
index b553111..b206854 100644
@@ -105,7 +105,11 @@ install: all
 	$(INSTALL_LIB) -D $(SHLIB) $(DESTDIR)$(libdir)/$(SHLIB)
 	mkdir -p $(DESTDIR)$(usrlibdir)/
 	ln -sf $(SHLIB) $(DESTDIR)$(libdir)/libvolume_id.so.$(SHLIB_CUR)
+ifeq ($(libdir),$(usrlibdir))
+	ln -sf $(SHLIB) $(DESTDIR)$(usrlibdir)/libvolume_id.so
+else
 	ln -sf $(libdir)/$(SHLIB) $(DESTDIR)$(usrlibdir)/libvolume_id.so
+endif
 	$(INSTALL_DATA) -D libvolume_id.pc $(DESTDIR)$(usrlibdir)/pkgconfig/libvolume_id.pc
 .PHONY: install
 
Signature · 12 lines
1.5.3.2


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel