[PATCH 06/25] logging: separate log driver code into libvirt_driver_log.la

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux