diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-01-10 17:12:18 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2024-01-10 22:10:14 +0100 |
commit | e59176f23cfdf40fe078e55835d61464f80d092b (patch) | |
tree | ab4a9132a186d2bf7256a6146d6416552b4eb070 /configure.ac | |
parent | 2a58f5dba8fcbcfea3140e08af43095b96042c9b (diff) |
Fix static linking with libsystemd
libsystemd requires libcap for static linking.
Add missing macro for function alias.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index fe7f7b39..8de3c1dd 100644 --- a/configure.ac +++ b/configure.ac @@ -336,7 +336,7 @@ if test "$my_htop_platform" = pcp; then fi if test "$my_htop_platform" = linux && test "x$enable_static" = xyes; then - AC_CHECK_LIB([systemd], [sd_bus_open_system]) + AC_CHECK_LIB([systemd], [sd_bus_open_system], [], [], [-lcap]) fi # ---------------------------------------------------------------------- |