From 32ea231b21d8d7b88d2f2a7d57916098baf8cfa2 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Fri, 11 Oct 2019 08:10:38 +0200 Subject: [PATCH] logging: separate log driver code into libvirt_driver_log.la MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow the same pattern as for other sub-directories where we create a static library that is linked into libvirt.so. Signed-off-by: Pavel Hrdina Reviewed-by: Ján Tomko --- 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 -- GitLab