diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-02-05 15:15:01 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-02-05 15:15:01 +0100 |
commit | cae47bb28d3d1f8db41edf55f1b055cf8552d806 (patch) | |
tree | 14dad43547eaec32d03c48fb1ecfde0a4e6b0709 /configure.ac | |
parent | fd4e6b432bcc0d6bac1a15a2ea492b4a540b75a1 (diff) |
configure: add -lelf for static build on FreeBSD
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
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 |