Commit 16faeae0 authored by Milan Broz's avatar Milan Broz

Check in configure if selinux libraries are required in static version.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@140 36d66b0a-2a48-0410-832c-cd162a569da5
parent e618f389
2009-11-14 Milan Broz <mbroz@redhat.com>
* Add CRYPT_ prefix to enum defined in libcryptsetup.h.
* Fix status call to fail when running as non-root user.
* Check in configure if selinux libraries are required in static version.
2009-09-30 Milan Broz <mbroz@redhat.com>
* Fix exported symbols and versions in libcryptsetup.
......
......@@ -88,7 +88,18 @@ if test "x$enable_selinux" != xno; then
LIBS=$saved_LIBS2
fi
fi
if test x$enable_static = xyes; then
saved_LIBS2=$LIBS
LIBS="$LIBS -static"
# Check if it there is still not some missing dependency like static selinux libs
AC_SEARCH_LIBS([dm_set_selinux_context], [devmapper],,
[AC_MSG_ERROR([Your system requires SElinux libraries for static compilation.])])
LIBS=$saved_LIBS2
fi
LIBS=$saved_LIBS
DEVMAPPER_LIBS="$DEVMAPPER_LIBS $LIB_PTHREAD"
AC_SUBST(DEVMAPPER_LIBS)
AC_SUBST(SELINUX_STATIC_LIBS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment