Only try compiling sepolicy plugin if selinux is enabled
This commit is contained in:
parent
e3ed69591f
commit
f9ff6e7234
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue