summaryrefslogtreecommitdiffstats
path: root/make.tmpl.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-04-15 15:12:20 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-04-15 15:12:20 +0000
commit5227ae5388eeec7b2387651e7c74b2ac45b687d5 (patch)
tree0e6d1aa3a0238488eb5307da2b7de6703aaf8e48 /make.tmpl.in
parentc474c0827b39372c1020c097d68c323aac2071c7 (diff)
downloadlvm2-5227ae5388eeec7b2387651e7c74b2ac45b687d5.tar.gz
lvm2-5227ae5388eeec7b2387651e7c74b2ac45b687d5.tar.xz
lvm2-5227ae5388eeec7b2387651e7c74b2ac45b687d5.zip
Install symbolic .so links with relative paths between usrlibdir and libdir.
Diffstat (limited to 'make.tmpl.in')
-rw-r--r--make.tmpl.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/make.tmpl.in b/make.tmpl.in
index 9d60e8bc..5e7f44fd 100644
--- a/make.tmpl.in
+++ b/make.tmpl.in
@@ -62,6 +62,8 @@ mandir = $(datarootdir)/man
localedir = $(DESTDIR)@LOCALEDIR@
staticdir = $(DESTDIR)@STATICDIR@
udevdir = $(DESTDIR)@udevdir@
+USRLIB_RELPATH = $(shell echo $(abspath $(usrlibdir) $(libdir)) | \
+ awk -f $(top_srcdir)/scripts/relpath.awk)
# Setup vpath search paths for some suffixes
vpath %.c $(srcdir)
@@ -301,7 +303,7 @@ $(LIB_SHARED): $(LIB_SHARED).$(LIB_VERSION)
install_lib_shared: $(LIB_SHARED)
$(INSTALL_PROGRAM) -D $< $(libdir)/$(<F).$(LIB_VERSION)
$(INSTALL) -d $(usrlibdir)
- $(LN_S) -f $(libdir)/$(<F).$(LIB_VERSION) $(usrlibdir)/$(<F)
+ $(LN_S) -f $(USRLIB_RELPATH)$(<F).$(LIB_VERSION) $(usrlibdir)/$(<F)
# FIXME: plugins are currently installed with .so suffix only
install_lib_shared_plugin: $(LIB_SHARED)