Only try compiling sepolicy plugin if selinux is enabled

This commit is contained in:
Panu Matilainen 2012-10-11 15:09:15 +03:00
parent e3ed69591f
commit f9ff6e7234
1 changed files with 4 additions and 1 deletions

View File

@ -13,11 +13,14 @@ AM_LDFLAGS = -avoid-version -module -shared
pluginsdir = $(libdir)/rpm-plugins
plugins_LTLIBRARIES = exec.la sepolicy.la
plugins_LTLIBRARIES = exec.la
exec_la_SOURCES = plugin.h exec.c
exec_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la
if SELINUX
sepolicy_la_SOURCES = plugin.h sepolicy.c
sepolicy_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la @WITH_SELINUX_LIB@ @WITH_SEMANAGE_LIB@
plugins_LTLIBRARIES += sepolicy.la
endif