Needed due to external request for systemd to be able to log directly to dlog.
This change avoids creation of cyclic dependency that would be created in
that case.
Change-Id: I9c779f263e92f4f84b825d20e263296400fcbf05
BUILT_SOURCES = include/dlog.h
AM_CFLAGS = -I$(srcdir)/include \
+ -DSD_DAEMON_DISABLE_MQ \
+ -I$(srcdir)/external/sd-daemon \
$(DEBUG_CFLAGS) \
-Werror \
$(CAPI_BASE_COMMON_CFLAGS) \
dlog_logger_CFLAGS = \
$(AM_CFLAGS) \
- $(LIBSYSTEMD_CFLAGS) \
-fPIE
-dlog_logger_LDADD = \
- $(LIBSYSTEMD_LIBS)
-
dlog_logger_LDFLAGS = \
$(AM_LDFLAGS) \
-pie
dlog_logger_SOURCES = \
+ external/sd-daemon/sd-daemon.c \
src/logger/logger.c \
src/shared/ptrs_list.c \
src/shared/logcommon.c \
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([CAPI_BASE_COMMON], [capi-base-common])
-PKG_CHECK_MODULES([LIBSYSTEMD], [libsystemd])
AC_SUBST(TZ_SYS_ETC)
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(libtzplatform-config)
-BuildRequires: pkgconfig(libsystemd)
Requires(post): coreutils
Requires(post): /usr/bin/systemctl
Requires(postun): /usr/bin/systemctl
#include <logpipe.h>
#include <log_file.h>
#include <logconfig.h>
-#include <systemd/sd-daemon.h>
#include <ptrs_list.h>
+#include <sd-daemon.h>
/**
* @addtogroup DLOG_IMPLEMENTATION