Ensure zlib version is printed by git-version(1)
I was trying to benchmark the difference between using zlib and zlib-ng. To be sure I was testing the correct version, I was interested if git-version(1) would tell which zlib library it uses. After some digging I saw it should be printing the zlib version number, but on my machine it wasn't.
I discovered a regression caused by 41f1a843 (git-compat-util: move include of "compat/zlib.h" into "git-zlib.h", 2025-01-28). In the first commit I'm addressing that regression.
But I've noticed building against zlib-ng directly still didn't print the zlib version. This issue is resolved in the second commit.
-- Toon
Signed-off-by: Toon Claes toon@iotcl.com Cc: Patrick Steinhardt ps@pks.im
--- b4-submit-tracking ---
This section is used internally by b4 prep for tracking purposes.
{ "series": { "revision": 1, "change-id": "20250307-toon-zlib-git-version-a7dcb9caa1ef", "prefixes": [] } }