summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2007-11-08 00:14:39 +0100
committerKay Sievers <kay.sievers@vrfy.org>2007-11-08 00:14:39 +0100
commit01ac7d96fa65e83c71d5bba40633e813e9b4015b (patch)
tree66739e53fbb9d2569dc50f6f0bdf01f03bd781cf /extras
parentc8e826147a0e39cf09079ea4e546f732f58b4eba (diff)
volume_id: create relative symlink when $(libdir) = $(usrlibdir)
Diffstat (limited to 'extras')
-rw-r--r--extras/volume_id/lib/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/volume_id/lib/Makefile b/extras/volume_id/lib/Makefile
index b553111c61..b206854f55 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