Follow the same pattern as for other sub-directories where we create a
static library that is linked into libvirt.os.
Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
src/logging/Makefile.inc.am | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/logging/Makefile.inc.am b/src/logging/Makefile.inc.am
index 74e94636a6..7d10b646ea 100644
--- a/src/logging/Makefile.inc.am
+++ b/src/logging/Makefile.inc.am
@@ -9,7 +9,7 @@ LOG_DAEMON_GENERATED = \
logging/log_daemon_dispatch_stubs.h
$(NULL)
-DRIVER_SOURCES += \
+LOG_DRIVER_SOURCES = \
$(LOG_PROTOCOL_GENERATED) \
logging/log_manager.c \
logging/log_manager.h \
@@ -33,6 +33,7 @@ EXTRA_DIST += \
$(LOG_PROTOCOL_GENERATED) \
$(LOG_DAEMON_GENERATED) \
$(LOG_DAEMON_SOURCES) \
+ $(LOG_DRIVER_SOURCES) \
logging/virtlogd.aug \
logging/virtlogd.conf \
logging/test_virtlogd.aug.in \
@@ -59,6 +60,17 @@ VIRTLOGD_UNIT_FILES_IN = \
SYSTEMD_UNIT_FILES += $(notdir $(VIRTLOGD_UNIT_FILES_IN:%.in=%))
SYSTEMD_UNIT_FILES_IN += $(VIRTLOGD_UNIT_FILES_IN)
+noinst_LTLIBRARIES += libvirt_driver_log.la
+
+libvirt_la_BUILT_LIBADD += libvirt_driver_log.la
+libvirt_driver_log_la_SOURCES = \
+ $(LOG_DRIVER_SOURCES) \
+ $(NULL)
+libvirt_driver_log_la_CFLAGS = \
+ $(AM_CFLAGS) \
+ $(XDR_CFLAGS) \
+ $(NULL)
+
if WITH_LIBVIRTD
sbin_PROGRAMS += virtlogd
--
2.21.0