summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2015-10-13 19:52:06 +0200
committerMichal Schmidt <mschmidt@redhat.com>2015-10-14 14:49:18 +0200
commit5fd2e2284323304ad28f8ab80041f3cf6632dc72 (patch)
tree7aa8e61b9769758b8d85a14ba68d3d442d4d86db /configure.ac
parent7f7bfcf3cfc6f0d9fabffb63a44b607a7a040d57 (diff)
build: don't link everything to libcap
The intent of the assignments around the check for libcap was obviously to avoid polluting LIBS. To work properly, LIBS must be restored from the save_LIBS variable. The practical effect is small though, because pretty much everything links with libbasic, which links with CAP_LIBS.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8f273c6990..4984c56f67 100644
--- a/configure.ac
+++ b/configure.ac
@@ -293,6 +293,7 @@ save_LIBS="$LIBS"
LIBS=
AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
CAP_LIBS="$LIBS"
+LIBS="$save_LIBS"
AC_SUBST(CAP_LIBS)
AC_CHECK_FUNCS([memfd_create])