sahlberg / libnfs

NFS client library
Other
510 stars 200 forks source link

CMakeLists.txt, configure.ac: increment VERSION and SOVERSION #468

Closed MaxKellermann closed 4 months ago

MaxKellermann commented 4 months ago

Commit 5e8f7ce27330 ("Add (almost) Zero-Copy for READ3") introduced a new API+ABI version that is incompatible with previous libnfs versions.

To avoid runtime breakages due to the new ABI, we must increment SOVERSION.

To avoid build-time breakages due to the new API, applications must be able to detec the new API. Since libnfs has no version macro, they cannot do this at compile time; the only way to detect the new API is to check the version number in the pkg-config file at configure time.