From e59176f23cfdf40fe078e55835d61464f80d092b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 10 Jan 2024 17:12:18 +0100 Subject: Fix static linking with libsystemd libsystemd requires libcap for static linking. Add missing macro for function alias. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') 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 # ---------------------------------------------------------------------- -- cgit v1.2.3