mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-01 09:47:48 +03:00
Install plugins to subdirs
Target install_dm_plugin installs files to libdir/device-mapper. Target install_lvm2_plugin installs files to libdir/lvm2. Both targets creates relative links to libdir to keep the code compatible with current dlopen handling. Once we will be able to read plugins from subdir, links could be removed.
This commit is contained in:
parent
03c5c5fbe7
commit
cd3475a8cb
@ -32,6 +32,6 @@ include $(top_builddir)/make.tmpl
|
||||
|
||||
LIBS += @LVM2CMD_LIB@ -ldevmapper-event-lvm2 -ldevmapper $(PTHREAD_LIBS)
|
||||
|
||||
install_lvm2: install_lib_shared_plugin
|
||||
install_lvm2: install_dm_plugin
|
||||
|
||||
install: install_lvm2
|
||||
|
@ -28,6 +28,6 @@ include $(top_builddir)/make.tmpl
|
||||
|
||||
LIBS += @LVM2CMD_LIB@ -ldevmapper-event-lvm2 -ldevmapper $(PTHREAD_LIBS)
|
||||
|
||||
install_lvm2: install_lib_shared_plugin
|
||||
install_lvm2: install_dm_plugin
|
||||
|
||||
install: install_lvm2
|
||||
|
@ -30,4 +30,4 @@ LIB_VERSION = $(LIB_VERSION_LVM)
|
||||
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install: install_lib_shared_plugin
|
||||
install: install_lvm2_plugin
|
||||
|
@ -27,4 +27,4 @@ LIB_VERSION = $(LIB_VERSION_LVM)
|
||||
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install: install_lib_shared_plugin
|
||||
install: install_lvm2_plugin
|
||||
|
@ -23,4 +23,4 @@ LIB_VERSION = $(LIB_VERSION_LVM)
|
||||
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install install_cluster: install_lib_shared_plugin
|
||||
install install_cluster: install_lvm2_plugin
|
||||
|
@ -23,4 +23,4 @@ LIB_VERSION = $(LIB_VERSION_LVM)
|
||||
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install: install_lib_shared_plugin
|
||||
install: install_lvm2_plugin
|
||||
|
@ -23,4 +23,4 @@ LIB_VERSION = $(LIB_VERSION_LVM)
|
||||
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
install: install_lib_shared_plugin
|
||||
install: install_lvm2_plugin
|
||||
|
17
make.tmpl.in
17
make.tmpl.in
@ -163,7 +163,7 @@ POTFILES = $(SOURCES:%.c=%.pot)
|
||||
|
||||
.PHONY: all pofile distclean clean cleandir cflow device-mapper
|
||||
.PHONY: install install_cluster install_device-mapper install_lvm2
|
||||
.PHONY: install_lib_shared install_lib_shared_plugin
|
||||
.PHONY: install_lib_shared install_dm_plugin install_lvm2_plugin
|
||||
.PHONY: $(SUBDIRS) $(SUBDIRS.install) $(SUBDIRS.clean) $(SUBDIRS.distclean)
|
||||
.PHONY: $(SUBDIRS.pofile) $(SUBDIRS.install_cluster) $(SUBDIRS.cflow)
|
||||
.PHONY: $(SUBDIRS.device-mapper) $(SUBDIRS.install-device-mapper)
|
||||
@ -306,9 +306,18 @@ install_lib_shared: $(LIB_SHARED)
|
||||
$(INSTALL) -d $(usrlibdir)
|
||||
$(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)
|
||||
$(INSTALL_PROGRAM) -D $< $(libdir)/$(<F)
|
||||
# FIXME: plugins are installed to subdirs
|
||||
# and for compatibility links in libdir are created
|
||||
# when the code is fixed links could be removed.
|
||||
install_dm_plugin: $(LIB_SHARED)
|
||||
$(INSTALL_PROGRAM) -D $< $(libdir)/device-mapper/$(<F)
|
||||
$(LN_S) -f device-mapper/$(<F) $(libdir)/$(<F)
|
||||
$(LN_S) -f $(<F) $(libdir)/$(<F).$(LIB_VERSION)
|
||||
|
||||
install_lvm2_plugin: $(LIB_SHARED)
|
||||
$(INSTALL_PROGRAM) -D $< $(libdir)/lvm2/$(<F)
|
||||
$(LN_S) -f lvm2/$(<F) $(libdir)/$(<F)
|
||||
$(LN_S) -f $(<F) $(libdir)/$(<F).$(LIB_VERSION)
|
||||
endif
|
||||
|
||||
%.so: %.a
|
||||
|
Loading…
x
Reference in New Issue
Block a user