mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
dmeventd: do not link internal libraries to plugins
Avoid linking internal device-mapper and link dynamically libdevmapper.
This considerably reduced size of installed binaries.
(cherry picked from commit 8bf445b2de
)
This commit is contained in:
parent
530b2df463
commit
81fdc82526
@ -16,6 +16,7 @@ top_srcdir = @top_srcdir@
|
|||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
|
|
||||||
CLDFLAGS += -L$(top_builddir)/tools
|
CLDFLAGS += -L$(top_builddir)/tools
|
||||||
|
LIBS += $(DMEVENT_LIBS) $(PTHREAD_LIBS) @LVM2CMD_LIB@
|
||||||
|
|
||||||
SOURCES = dmeventd_lvm.c
|
SOURCES = dmeventd_lvm.c
|
||||||
|
|
||||||
@ -24,8 +25,6 @@ LIB_VERSION = $(LIB_VERSION_LVM)
|
|||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
|
||||||
LIBS += @LVM2CMD_LIB@ $(INTERNAL_LIBS) $(PTHREAD_LIBS)
|
|
||||||
|
|
||||||
install_lvm2: install_lib_shared
|
install_lvm2: install_lib_shared
|
||||||
|
|
||||||
install: install_lvm2
|
install: install_lvm2
|
||||||
|
@ -17,6 +17,7 @@ top_srcdir = @top_srcdir@
|
|||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
|
|
||||||
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
|
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
|
||||||
|
LIBS += -ldevmapper-event-lvm2
|
||||||
|
|
||||||
SOURCES = dmeventd_mirror.c
|
SOURCES = dmeventd_mirror.c
|
||||||
|
|
||||||
@ -29,8 +30,6 @@ CFLOW_LIST_TARGET = $(LIB_NAME).cflow
|
|||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
|
||||||
LIBS += -ldevmapper-event-lvm2 $(INTERNAL_LIBS)
|
|
||||||
|
|
||||||
install_lvm2: install_dm_plugin
|
install_lvm2: install_dm_plugin
|
||||||
|
|
||||||
install: install_lvm2
|
install: install_lvm2
|
||||||
|
@ -16,6 +16,7 @@ top_srcdir = @top_srcdir@
|
|||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
|
|
||||||
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
|
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
|
||||||
|
LIBS += -ldevmapper-event-lvm2
|
||||||
|
|
||||||
SOURCES = dmeventd_raid.c
|
SOURCES = dmeventd_raid.c
|
||||||
|
|
||||||
@ -28,8 +29,6 @@ CFLOW_LIST_TARGET = $(LIB_NAME).cflow
|
|||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
|
||||||
LIBS += -ldevmapper-event-lvm2 $(INTERNAL_LIBS)
|
|
||||||
|
|
||||||
install_lvm2: install_dm_plugin
|
install_lvm2: install_dm_plugin
|
||||||
|
|
||||||
install: install_lvm2
|
install: install_lvm2
|
||||||
|
@ -17,6 +17,7 @@ top_srcdir = @top_srcdir@
|
|||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
|
|
||||||
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
|
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
|
||||||
|
LIBS += -ldevmapper-event-lvm2
|
||||||
|
|
||||||
SOURCES = dmeventd_snapshot.c
|
SOURCES = dmeventd_snapshot.c
|
||||||
|
|
||||||
@ -25,8 +26,6 @@ LIB_VERSION = $(LIB_VERSION_LVM)
|
|||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
|
||||||
LIBS += -ldevmapper-event-lvm2 $(INTERNAL_LIBS)
|
|
||||||
|
|
||||||
install_lvm2: install_dm_plugin
|
install_lvm2: install_dm_plugin
|
||||||
|
|
||||||
install: install_lvm2
|
install: install_lvm2
|
||||||
|
@ -16,6 +16,7 @@ top_srcdir = @top_srcdir@
|
|||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
|
|
||||||
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
|
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
|
||||||
|
LIBS += -ldevmapper-event-lvm2
|
||||||
|
|
||||||
SOURCES = dmeventd_thin.c
|
SOURCES = dmeventd_thin.c
|
||||||
|
|
||||||
@ -28,8 +29,6 @@ CFLOW_LIST_TARGET = $(LIB_NAME).cflow
|
|||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
|
||||||
LIBS += -ldevmapper-event-lvm2 $(INTERNAL_LIBS)
|
|
||||||
|
|
||||||
install_lvm2: install_dm_plugin
|
install_lvm2: install_dm_plugin
|
||||||
|
|
||||||
install: install_lvm2
|
install: install_lvm2
|
||||||
|
@ -16,6 +16,7 @@ top_srcdir = @top_srcdir@
|
|||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
|
|
||||||
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
|
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
|
||||||
|
LIBS += -ldevmapper-event-lvm2
|
||||||
|
|
||||||
SOURCES = dmeventd_vdo.c
|
SOURCES = dmeventd_vdo.c
|
||||||
|
|
||||||
@ -28,8 +29,6 @@ CFLOW_LIST_TARGET = $(LIB_NAME).cflow
|
|||||||
|
|
||||||
include $(top_builddir)/make.tmpl
|
include $(top_builddir)/make.tmpl
|
||||||
|
|
||||||
LIBS += -ldevmapper-event-lvm2 $(INTERNAL_LIBS)
|
|
||||||
|
|
||||||
install_lvm2: install_dm_plugin
|
install_lvm2: install_dm_plugin
|
||||||
|
|
||||||
install: install_lvm2
|
install: install_lvm2
|
||||||
|
Loading…
Reference in New Issue
Block a user