summaryrefslogtreecommitdiff
path: root/Makefile-otutil.am
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-06-14 13:12:21 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2016-06-21 18:24:17 +0000
commit9e2763106be01044caa541314d3fe185cc73361d (patch)
tree66b07e037eb38f0880e5205814726d3d95c880fc /Makefile-otutil.am
parent4819b44189cbdde189a2693e081be39483838e78 (diff)
downloadostree-9e2763106be01044caa541314d3fe185cc73361d.tar.gz
lib: Use sd_journal directly (optionally)
This was the last caller of libgsystem that isn't `gs_file_get_path_cached()`. I think the use case ostree has where the same code can be called via command line and via a shared library *and* via a daemon is rather unusual, so let's just copy the code for logging from libgsystem into here. For example rpm-ostree hard depends on a daemon mode, so it'll just use `sd_journal` directly. Closes: #341 Approved by: jlebon
Diffstat (limited to 'Makefile-otutil.am')
-rw-r--r--Makefile-otutil.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile-otutil.am b/Makefile-otutil.am
index efcb04b7..ee892a70 100644
--- a/Makefile-otutil.am
+++ b/Makefile-otutil.am
@@ -36,6 +36,8 @@ libotutil_la_SOURCES = \
src/libotutil/ot-variant-utils.h \
src/libotutil/ot-gio-utils.c \
src/libotutil/ot-gio-utils.h \
+ src/libotutil/ot-log-utils.c \
+ src/libotutil/ot-log-utils.h \
src/libotutil/ot-gpg-utils.c \
src/libotutil/ot-gpg-utils.h \
src/libotutil/otutil.c \
@@ -43,5 +45,5 @@ libotutil_la_SOURCES = \
src/libotutil/ot-tool-util.c \
src/libotutil/ot-tool-util.h \
$(NULL)
-libotutil_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/libglnx -I$(srcdir)/src/libotutil -DLOCALEDIR=\"$(datadir)/locale\" $(OT_INTERNAL_GIO_UNIX_CFLAGS) $(OT_INTERNAL_GPGME_CFLAGS)
-libotutil_la_LIBADD = $(OT_INTERNAL_GIO_UNIX_LIBS) $(OT_INTERNAL_GPGME_LIBS)
+libotutil_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/libglnx -I$(srcdir)/src/libotutil -DLOCALEDIR=\"$(datadir)/locale\" $(OT_INTERNAL_GIO_UNIX_CFLAGS) $(OT_INTERNAL_GPGME_CFLAGS) $(LIBSYSTEMD_CFLAGS)
+libotutil_la_LIBADD = $(OT_INTERNAL_GIO_UNIX_LIBS) $(OT_INTERNAL_GPGME_LIBS) $(LIBSYSTEMD_LIBS)