Skip to content

Commit

Permalink
add compile flags for dlog
Browse files Browse the repository at this point in the history
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
  • Loading branch information
2xsec authored and Christian Brauner committed Sep 30, 2018
1 parent 7ac0091 commit aa074e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions lxc.spec.in
Expand Up @@ -91,6 +91,13 @@ BuildRequires: libseccomp-devel
%endif
%endif

#
# Additional package for Tizen
#
%if %{defined tizen_version}
BuildRequires: pkgconfig(dlog)
%endif

%description
Containers are insulated areas inside a system, which have their own namespace
for filesystem, network, PID, IPC, CPU and memory allocation and which can be
Expand Down
10 changes: 7 additions & 3 deletions src/lxc/Makefile.am
Expand Up @@ -211,7 +211,8 @@ AM_CFLAGS += -DHAVE_SELINUX
endif

if ENABLE_DLOG
AM_CFLAGS += -DHAVE_DLOG
AM_CFLAGS += -DHAVE_DLOG \
$(DLOG_CFLAGS)
endif

if USE_CONFIGPATH_LOGS
Expand All @@ -232,7 +233,8 @@ liblxc_la_LDFLAGS = -pthread \
liblxc_la_LIBADD = $(CAP_LIBS) \
$(GNUTLS_LIBS) \
$(SELINUX_LIBS) \
$(SECCOMP_LIBS)
$(SECCOMP_LIBS) \
$(DLOG_LIBS)

bin_SCRIPTS=

Expand Down Expand Up @@ -284,7 +286,8 @@ LDADD = liblxc.la \
@CAP_LIBS@ \
@GNUTLS_LIBS@ \
@SECCOMP_LIBS@ \
@SELINUX_LIBS@
@SELINUX_LIBS@ \
@DLOG_LIBS@

if ENABLE_TOOLS
lxc_attach_SOURCES = tools/lxc_attach.c \
Expand Down Expand Up @@ -420,6 +423,7 @@ pam_cgfs_la_CFLAGS = $(AM_CFLAGS) -DNO_LXC_CONF

pam_cgfs_la_LIBADD = $(AM_LIBS) \
$(PAM_LIBS) \
$(DLOG_LIBS) \
-L$(top_srcdir)

pam_cgfs_la_LDFLAGS = $(AM_LDFLAGS) \
Expand Down

0 comments on commit aa074e3

Please sign in to comment.