linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libvolume_id: Make relative symlink when $(libdir) =
@ 2007-10-26 19:19 Dan Nicholson
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Nicholson @ 2007-10-26 19:19 UTC (permalink / raw)
  To: linux-hotplug

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 <dbn.lists@gmail.com>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libvolume_id: Make relative symlink when $(libdir) =
@ 2007-11-07 23:23 Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2007-11-07 23:23 UTC (permalink / raw)
  To: linux-hotplug

On Oct 26, 2007 8:19 PM, Dan Nicholson <dbn.lists@gmail.com> wrote:
> 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 <dbn.lists@gmail.com>
> ---
>  extras/volume_id/lib/Makefile |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)

Applied.

Thanks,
Kay

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-07 23:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26 19:19 [PATCH] libvolume_id: Make relative symlink when $(libdir) = Dan Nicholson
  -- strict thread matches above, loose matches on Subject: below --
2007-11-07 23:23 Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).