htop icon indicating copy to clipboard operation
htop copied to clipboard

Use pkg-config to discover libnl-3

Open fpletz opened this issue 9 months ago • 1 comments

Since #1427, the location of libnl-3 is not discovered anymore with pkg-config. Instead, the hardcoded path /usr/include/libnl3 was introduced for headers without any possibility to override it except by patching.

This PR adds support for pkg-config to discover the location of the headers. Additionally, it discovers the path to libnl-3 libraries and modifies the dlopen calls to load the configured libraries from their fully qualified path.

Also note the discussion on the pull request.

fpletz avatar Mar 13 '25 07:03 fpletz

@fpletz I've adapted some part of your patch to the new PR, #1698. Would you please help test it out to see whether it works? It can supersede this PR.

Explorer09 avatar May 11 '25 10:05 Explorer09