commit 9aa4548cb8720f772ca5e3648d689fbd931dffe1 Author: Harald Hoyer <harald@xxxxxxxxxx> 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])