summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2024-03-30 13:47:14 +0100
committercgzones <cgzones@googlemail.com>2024-04-05 19:27:07 +0200
commit24b1513296fd61722166625ad46be1c56a5efc44 (patch)
treea0137954bfd9252bef84f18c57d90c95696d9dfc /README.md
parenta782ef357067962f60580478067f4023facab6a0 (diff)
linux: use dlopen for libnl3 instead of dynamic linking
Instead of the current behavior of dynamic linking against libnl3 and libnl-genl-3 when configured with --enable-delayacct, load the shared libraries on request, if any delay accounting related process field is active, via dlopen(3), similar to libsensors and libsystemd. Distribution, who currently build htop with --enable-delayacct, need to explicitly add libnl3 and libnl-genl-3 as runtime dependencies to continue supporting delay accounting out-of-the-box.
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 7ace7cd1..40887254 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ List of additional build-time dependencies (based on feature flags):
* `sensors`
* `hwloc`
* `libcap` (v2.21 or later)
-* `libnl-3`
+* `libnl-3` and `libnl-genl-3`
Install these and other required packages for C development from your package manager.
@@ -137,7 +137,7 @@ To install on the local system run `make install`. By default `make install` ins
- default: *no*
* `--enable-delayacct`:
enable Linux delay accounting support
- - dependencies: *pkg-config*(build-time), *libnl-3* and *libnl-genl-3*
+ - dependencies: *libnl-3-dev*(build-time) and *libnl-genl-3-dev*(build-time), at runtime *libnl-3* and *libnl-genl-3* are loaded via `dlopen(3)` if available and requested
- default: *check*
@@ -153,6 +153,7 @@ To install on the local system run `make install`. By default `make install` ins
* `libcap`, user-space interfaces to POSIX 1003.1e capabilities, is always required when `--enable-capabilities` was used to configure `htop`.
* `libsensors`, readout of temperatures and CPU speeds, is optional even when `--enable-sensors` was used to configure `htop`.
* `libsystemd` is optional when `--enable-static` was not used to configure `htop`. If building statically and `libsystemd` is not found by `configure`, support for the systemd meter is disabled entirely.
+* `libnl-3` and `libnl-genl-3`, if `htop` was configured with `--enable-delayacct` and delay accounting process fields are active.
`htop` checks for the availability of the actual runtime libraries as `htop` runs.

© 2014-2024 Faster IT GmbH | imprint | privacy policy