summaryrefslogtreecommitdiff
path: root/extras/volume_id/lib/Makefile.am
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-07-30 15:50:12 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-07-30 15:50:12 +0200
commit4337f8fcf14ab49f55ea325d94a4595e5e49a3b8 (patch)
treec90f479ec611228a8ebaff2a918ef608aa0747a0 /extras/volume_id/lib/Makefile.am
parent4cf46e2c02934e08844cb4b849e022aaca04d34a (diff)
volume_id: create relative links
Diffstat (limited to 'extras/volume_id/lib/Makefile.am')
-rw-r--r--extras/volume_id/lib/Makefile.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/volume_id/lib/Makefile.am b/extras/volume_id/lib/Makefile.am
index 592b390987..6313962e68 100644
--- a/extras/volume_id/lib/Makefile.am
+++ b/extras/volume_id/lib/Makefile.am
@@ -55,8 +55,10 @@ install-data-hook:
if test "$(prefix)" != "$(exec_prefix)"; then \
mkdir -p $(DESTDIR)$(prefix)/$(libdir_name); \
mv $(DESTDIR)$(rootlibdir)/libvolume_id.a $(DESTDIR)$(prefix)/$(libdir_name)/; \
+ so_img_name=$$(readlink $(DESTDIR)$(rootlibdir)/libvolume_id.so); \
rm $(DESTDIR)$(rootlibdir)/libvolume_id.so; \
- ln -sf $(rootlibdir)/libvolume_id.so.$(VOLID_LT_CURRENT).$(VOLID_LT_AGE).$(VOLID_LT_REVISION) \
+ so_img_rel_target_prefix=$$(echo $(prefix)/$(libdir_name) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \
+ ln -sf $$so_img_rel_target_prefix$(exec_prefix)/$(libdir_name)/$$so_img_name \
$(DESTDIR)$(prefix)/$(libdir_name)/libvolume_id.so; \
fi