]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
autotools: do not link against libapparmor 2102/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 22 Jan 2018 11:14:21 +0000 (12:14 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 22 Jan 2018 11:14:21 +0000 (12:14 +0100)
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>
configure.ac
src/lxc/Makefile.am

index 0bcd75a280260fa3ca84a9b8acbd4af5c255bdd3..6713539b43a6d76c26964840f1f06d52639a02b6 100644 (file)
@@ -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]])],
index 895684e0be0939de6f732edb2ed67fbaf56b446f..8f9a7ab2979a8868009f30b07879a66823c115d8 100644 (file)
@@ -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