]> git.99rst.org Git - openwrt-packages.git/commit
libdht: give the shared library a soname
authorDaniel Golle <redacted>
Tue, 18 Aug 2026 00:10:27 +0000 (01:10 +0100)
committerDaniel Golle <redacted>
Tue, 18 Aug 2026 04:09:32 +0000 (05:09 +0100)
commit502da457ccb6201dafaf666a5822f5b001c9eea4
tree277be6f7f4b90048e95fe44a90156c3aeacbb095
parent77879deb5a4b5cc6bf3cc99dac8fd3037a1aa4a2
libdht: give the shared library a soname

The library installed as a bare libdht.so with no SONAME, so consumers
recorded the filename as their DT_NEEDED and there was no way to express
an ABI break. Build it as libdht.so.0 with a matching soname and declare
ABI_VERSION, so the package is versioned like any other shared library.

jech/dht makes no ABI promise of its own, so 0 is a packaged ABI epoch:
bump PKG_ABI_VERSION if the exported surface changes. That epoch is now
a single variable referenced from ABI_VERSION, the soname, the output
filename and the symlink target, rather than repeated literally in all
four places, matching the pattern already used by libcurl-gnutls.

Also pass TARGET_CFLAGS/TARGET_CPPFLAGS/TARGET_LDFLAGS to the compile
and link, which the hand-written rules had skipped, and fix
PKG_LICENSE_FILES: jech/dht ships LICENCE, not LICENSE, so the declared
file was never found.

Signed-off-by: Daniel Golle <redacted>
libs/libdht/Makefile
git clone https://git.99rst.org/PROJECT