From cae47bb28d3d1f8db41edf55f1b055cf8552d806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 5 Feb 2021 15:15:01 +0100 Subject: [PATCH] configure: add -lelf for static build on FreeBSD --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 448572ba..6fdb8173 100644 --- a/configure.ac +++ b/configure.ac @@ -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