From: Michal Schmidt Date: Tue, 13 Oct 2015 17:52:06 +0000 (+0200) Subject: build: don't link everything to libcap X-Git-Tag: v228~204^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fd2e2284323304ad28f8ab80041f3cf6632dc72;p=thirdparty%2Fsystemd.git 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. --- diff --git a/configure.ac b/configure.ac index 8f273c69905..4984c56f67e 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])