mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
build: only build without libcap on request
Linux FRR builds without libcap are massively slow due to the signal-based UID/GID synchronization across threads. This disables the automatic fallback to build without libcap; it can still be requested with "--disable-capabilities" but if the option isn't given in either direction and we can't find libcap that's an error now. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
9095976830
commit
7bfe765ae0
14
configure.ac
14
configure.ac
|
@ -2007,6 +2007,20 @@ if test "${enable_capabilities}" != "no"; then
|
|||
-o x"${frr_ac_lcaps}" = x"yes"; then
|
||||
AC_DEFINE([HAVE_CAPABILITIES], [1], [capabilities])
|
||||
fi
|
||||
|
||||
case "$host_os" in
|
||||
linux*)
|
||||
if test "$frr_ac_lcaps" != "yes"; then
|
||||
AC_MSG_ERROR([libcap and/or its headers were not found. Running FRR without libcap support built in causes a huge performance penalty.])
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
else
|
||||
case "$host_os" in
|
||||
linux*)
|
||||
AC_MSG_WARN([Running FRR without libcap support built in causes a huge performance penalty.])
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
AC_SUBST([LIBCAP])
|
||||
|
||||
|
|
Loading…
Reference in a new issue