You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
899 B

  1. From 2cd3abe419dab2ee32227c0870f96f805d870fe6 Mon Sep 17 00:00:00 2001
  2. From: Lucian Cristian <lucian.cristian@gmail.com>
  3. Date: Fri, 13 Sep 2019 07:16:18 +0300
  4. Subject: [PATCH] clippy: fail libcap test only when !enable_clippy_only when
  5. building native clippy we don't need libcap
  6. Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
  7. ---
  8. configure.ac | 2 ++
  9. 1 file changed, 2 insertions(+)
  10. diff --git a/configure.ac b/configure.ac
  11. index 9f37b3e9a9..be3a9c763d 100755
  12. --- a/configure.ac
  13. +++ b/configure.ac
  14. @@ -2043,9 +2043,11 @@ if test "${enable_capabilities}" != "no"; then
  15. case "$host_os" in
  16. linux*)
  17. + if test "${enable_clippy_only}" != "yes"; then
  18. if test "$frr_ac_lcaps" != "yes"; then
  19. AC_MSG_ERROR([libcap and/or its headers were not found. Running FRR without libcap support built in causes a huge performance penalty.])
  20. fi
  21. + fi
  22. ;;
  23. esac
  24. else