mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-14 17:12:14 +00:00
autotools: do not link against libapparmor
Since we write the label directly without going through the AppArmor API it doesn't make sense to link against it. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
5288a74faa
commit
05f0f93a93
@ -258,11 +258,6 @@ if test "$enable_apparmor" = "auto" ; then
|
||||
fi
|
||||
AM_CONDITIONAL([ENABLE_APPARMOR], [test "x$enable_apparmor" = "xyes"])
|
||||
|
||||
AM_COND_IF([ENABLE_APPARMOR],
|
||||
[AC_CHECK_HEADER([sys/apparmor.h],[],[AC_MSG_ERROR([You must install the AppArmor development package in order to compile lxc])])
|
||||
AC_CHECK_LIB([apparmor], [aa_change_profile],[],[AC_MSG_ERROR([You must install the AppArmor development package in order to compile lxc])])
|
||||
AC_SUBST([APPARMOR_LIBS], [-lapparmor])])
|
||||
|
||||
# GnuTLS
|
||||
AC_ARG_ENABLE([gnutls],
|
||||
[AC_HELP_STRING([--enable-gnutls], [enable GnuTLS support [default=auto]])],
|
||||
|
@ -207,7 +207,7 @@ liblxc_la_LDFLAGS = \
|
||||
-Wl,-soname,liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)) \
|
||||
-version-info @LXC_ABI_MAJOR@
|
||||
|
||||
liblxc_la_LIBADD = $(CAP_LIBS) $(APPARMOR_LIBS) $(SELINUX_LIBS) $(SECCOMP_LIBS)
|
||||
liblxc_la_LIBADD = $(CAP_LIBS) $(SELINUX_LIBS) $(SECCOMP_LIBS)
|
||||
|
||||
if ENABLE_CGMANAGER
|
||||
liblxc_la_LIBADD += $(CGMANAGER_LIBS) $(DBUS_LIBS) $(NIH_LIBS) $(NIH_DBUS_LIBS)
|
||||
@ -264,7 +264,7 @@ AM_LDFLAGS = -Wl,-E
|
||||
if ENABLE_RPATH
|
||||
AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
|
||||
endif
|
||||
LDADD=liblxc.la @CAP_LIBS@ @APPARMOR_LIBS@ @SELINUX_LIBS@ @SECCOMP_LIBS@
|
||||
LDADD=liblxc.la @CAP_LIBS@ @SELINUX_LIBS@ @SECCOMP_LIBS@
|
||||
|
||||
lxc_attach_SOURCES = tools/lxc_attach.c tools/arguments.c
|
||||
lxc_autostart_SOURCES = tools/lxc_autostart.c tools/arguments.c
|
||||
|
Loading…
Reference in New Issue
Block a user