From 5fd2e2284323304ad28f8ab80041f3cf6632dc72 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Tue, 13 Oct 2015 19:52:06 +0200 Subject: 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. --- configure.ac | 1 + 1 file changed, 1 insertion(+) 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]) -- cgit v1.2.3-54-g00ecf