]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build: don't link everything to libcap
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 13 Oct 2015 17:52:06 +0000 (19:52 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Wed, 14 Oct 2015 12:49:18 +0000 (14:49 +0200)
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

index 8f273c69905f7838cf9edbe81631f82a28e9f041..4984c56f67e76a4d0822efc99ffb24ce0ddd72ed 100644 (file)
@@ -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])