diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2010-04-15 15:12:20 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2010-04-15 15:12:20 +0000 |
commit | 5227ae5388eeec7b2387651e7c74b2ac45b687d5 (patch) | |
tree | 0e6d1aa3a0238488eb5307da2b7de6703aaf8e48 /make.tmpl.in | |
parent | c474c0827b39372c1020c097d68c323aac2071c7 (diff) | |
download | lvm2-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.in | 4 |
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) |