configure: add -lelf for static build on FreeBSD

This commit is contained in:
Christian Göttsche 2021-02-05 15:15:01 +01:00
parent fd4e6b432b
commit cae47bb28d
1 changed files with 3 additions and 0 deletions

View File

@ -157,6 +157,9 @@ if test "$my_htop_platform" = dragonflybsd; then
fi
if test "$my_htop_platform" = freebsd; then
if test "$enable_static" = yes; then
AC_SEARCH_LIBS([elf_version], [elf], [], [AC_MSG_ERROR([can not find required function elf_version()])])
fi
AC_SEARCH_LIBS([kvm_open], [kvm], [], [AC_MSG_ERROR([can not find required function kvm_open()])])
AC_SEARCH_LIBS([devstat_checkversion], [devstat], [], [AC_MSG_ERROR([can not find required function devstat_checkversion()])])
fi