Use selinux libs only when needed (fixes previous commit).
authorMilan Broz <gmazyland@gmail.com>
Tue, 8 Sep 2009 13:08:36 +0000 (13:08 +0000)
committerMilan Broz <gmazyland@gmail.com>
Tue, 8 Sep 2009 13:08:36 +0000 (13:08 +0000)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@108 36d66b0a-2a48-0410-832c-cd162a569da5

configure.in

index eab08b1..5f4fe9e 100644 (file)
@@ -103,7 +103,7 @@ if test "x$enable_selinux" != xno; then
                AC_SEARCH_LIBS([pthread_mutex_lock], [pthread],
                        [test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIB_PTHREAD=-lpthread])
                LIBS="$saved_LIBS2"
-               SELINUX_STATIC_LIBS="-lselinux -lsepol"
+               SELINUX_STATIC_LIBS="$LIBS"
        fi
 fi
 AC_SUBST(SELINUX_STATIC_LIBS)