From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Nicholson Date: Fri, 26 Oct 2007 19:19:20 +0000 Subject: [PATCH] libvolume_id: Make relative symlink when $(libdir) = Message-Id: <1193426360-5082-2-git-send-email-dbn.lists@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org When the .so link is not in the same directory as the library, there is no reason to make an absolute symbolic link. Signed-off-by: Dan Nicholson --- extras/volume_id/lib/Makefile | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/extras/volume_id/lib/Makefile b/extras/volume_id/lib/Makefile index b553111..b206854 100644 --- a/extras/volume_id/lib/Makefile +++ b/extras/volume_id/lib/Makefile @@ -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 -- 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 Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel