From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Date: Tue, 16 Dec 2008 09:54:04 +0000 Subject: selinux version to link against libsepol, too Message-Id: <49477ABC.9030809@redhat.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------080604050009070807080102" List-Id: To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. --------------080604050009070807080102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------080604050009070807080102 Content-Type: text/plain; name="udev-135-sepol.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="udev-135-sepol.patch" commit 9aa4548cb8720f772ca5e3648d689fbd931dffe1 Author: Harald Hoyer Date: Tue Dec 16 10:48:21 2008 +0100 LDFLAGS="-all-static" and configure --withselinux needs to link against libsepol, too diff --git a/configure.ac b/configure.ac index 4439166..cd4ccc5 100644 --- a/configure.ac +++ b/configure.ac @@ -55,6 +55,13 @@ if test "x$with_selinux" = xyes; then AC_DEFINE(USE_SELINUX, [1] ,[compile with SELinux support]) SELINUX_LIBS="-lselinux" fi +if test "x$with_selinux" = xyes; then + LIBS_save=$LIBS + AC_CHECK_LIB(sepol, sepol_genbools, + [SELINUX_LIBS="$SELINUX_LIBS -lsepol"], + []) + LIBS=$LIBS_save +fi AC_SUBST([SELINUX_LIBS]) AM_CONDITIONAL(USE_SELINUX, [test "x$with_selinux" = xyes], [compile with SELinux support]) --------------080604050009070807080102--