summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2018-12-14 16:58:56 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2018-12-17 10:36:52 +0100
commit8bf445b2deed25f101e2861656ee19151ea7e335 (patch)
tree5dcae4835eaf218e5ebe28fc149f71a22412788a /daemons
parent035a7b9a4bf77798d9d7ecdb7cfa8dfd77a92729 (diff)
downloadlvm2-8bf445b2deed25f101e2861656ee19151ea7e335.tar.gz
dmeventd: do not link internal libraries to plugins
Avoid linking internal device-mapper and link dynamically libdevmapper. This considerably reduced size of installed binaries.
Diffstat (limited to 'daemons')
-rw-r--r--daemons/dmeventd/plugins/lvm2/Makefile.in3
-rw-r--r--daemons/dmeventd/plugins/mirror/Makefile.in3
-rw-r--r--daemons/dmeventd/plugins/raid/Makefile.in3
-rw-r--r--daemons/dmeventd/plugins/snapshot/Makefile.in3
-rw-r--r--daemons/dmeventd/plugins/thin/Makefile.in3
-rw-r--r--daemons/dmeventd/plugins/vdo/Makefile.in3
6 files changed, 6 insertions, 12 deletions
diff --git a/daemons/dmeventd/plugins/lvm2/Makefile.in b/daemons/dmeventd/plugins/lvm2/Makefile.in
index e4eedc67c..858de9d03 100644
--- a/daemons/dmeventd/plugins/lvm2/Makefile.in
+++ b/daemons/dmeventd/plugins/lvm2/Makefile.in
@@ -16,6 +16,7 @@ top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
CLDFLAGS += -L$(top_builddir)/tools
+LIBS += $(DMEVENT_LIBS) $(PTHREAD_LIBS) @LVM2CMD_LIB@
SOURCES = dmeventd_lvm.c
@@ -24,8 +25,6 @@ LIB_VERSION = $(LIB_VERSION_LVM)
include $(top_builddir)/make.tmpl
-LIBS += @LVM2CMD_LIB@ $(INTERNAL_LIBS) $(PTHREAD_LIBS)
-
install_lvm2: install_lib_shared
install: install_lvm2
diff --git a/daemons/dmeventd/plugins/mirror/Makefile.in b/daemons/dmeventd/plugins/mirror/Makefile.in
index 2c0d5d7f2..62d94c996 100644
--- a/daemons/dmeventd/plugins/mirror/Makefile.in
+++ b/daemons/dmeventd/plugins/mirror/Makefile.in
@@ -17,6 +17,7 @@ top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
+LIBS += -ldevmapper-event-lvm2
SOURCES = dmeventd_mirror.c
@@ -29,8 +30,6 @@ CFLOW_LIST_TARGET = $(LIB_NAME).cflow
include $(top_builddir)/make.tmpl
-LIBS += -ldevmapper-event-lvm2 $(INTERNAL_LIBS)
-
install_lvm2: install_dm_plugin
install: install_lvm2
diff --git a/daemons/dmeventd/plugins/raid/Makefile.in b/daemons/dmeventd/plugins/raid/Makefile.in
index c00e624a7..abc935d45 100644
--- a/daemons/dmeventd/plugins/raid/Makefile.in
+++ b/daemons/dmeventd/plugins/raid/Makefile.in
@@ -16,6 +16,7 @@ top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
+LIBS += -ldevmapper-event-lvm2
SOURCES = dmeventd_raid.c
@@ -28,8 +29,6 @@ CFLOW_LIST_TARGET = $(LIB_NAME).cflow
include $(top_builddir)/make.tmpl
-LIBS += -ldevmapper-event-lvm2 $(INTERNAL_LIBS)
-
install_lvm2: install_dm_plugin
install: install_lvm2
diff --git a/daemons/dmeventd/plugins/snapshot/Makefile.in b/daemons/dmeventd/plugins/snapshot/Makefile.in
index adbb3e2d5..c5f71b881 100644
--- a/daemons/dmeventd/plugins/snapshot/Makefile.in
+++ b/daemons/dmeventd/plugins/snapshot/Makefile.in
@@ -17,6 +17,7 @@ top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
+LIBS += -ldevmapper-event-lvm2
SOURCES = dmeventd_snapshot.c
@@ -25,8 +26,6 @@ LIB_VERSION = $(LIB_VERSION_LVM)
include $(top_builddir)/make.tmpl
-LIBS += -ldevmapper-event-lvm2 $(INTERNAL_LIBS)
-
install_lvm2: install_dm_plugin
install: install_lvm2
diff --git a/daemons/dmeventd/plugins/thin/Makefile.in b/daemons/dmeventd/plugins/thin/Makefile.in
index 7968504b6..c1cbee792 100644
--- a/daemons/dmeventd/plugins/thin/Makefile.in
+++ b/daemons/dmeventd/plugins/thin/Makefile.in
@@ -16,6 +16,7 @@ top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
+LIBS += -ldevmapper-event-lvm2
SOURCES = dmeventd_thin.c
@@ -28,8 +29,6 @@ CFLOW_LIST_TARGET = $(LIB_NAME).cflow
include $(top_builddir)/make.tmpl
-LIBS += -ldevmapper-event-lvm2 $(INTERNAL_LIBS)
-
install_lvm2: install_dm_plugin
install: install_lvm2
diff --git a/daemons/dmeventd/plugins/vdo/Makefile.in b/daemons/dmeventd/plugins/vdo/Makefile.in
index 8e90e27df..84adb7445 100644
--- a/daemons/dmeventd/plugins/vdo/Makefile.in
+++ b/daemons/dmeventd/plugins/vdo/Makefile.in
@@ -16,6 +16,7 @@ top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd/plugins/lvm2
+LIBS += -ldevmapper-event-lvm2
SOURCES = dmeventd_vdo.c
@@ -28,8 +29,6 @@ CFLOW_LIST_TARGET = $(LIB_NAME).cflow
include $(top_builddir)/make.tmpl
-LIBS += -ldevmapper-event-lvm2 $(INTERNAL_LIBS)
-
install_lvm2: install_dm_plugin
install: install_lvm2