Android NDK r26 is featuring clang 17 compiler, which errors out in the case when gz_intmax is mentioned in zlib.map, yet it's not part of the code base (in case INT_MAX is defined).
Also with this PR, the zlib interface becomes more stable over compiler & toolchain changes.
This is the compiler error:
ld.lld: error: version script assignment of 'local' to symbol 'gz_intmax' failed: symbol not defined
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Android NDK r26 is featuring clang 17 compiler, which errors out in the case when gz_intmax is mentioned in zlib.map, yet it's not part of the code base (in case INT_MAX is defined).
Also with this PR, the zlib interface becomes more stable over compiler & toolchain changes.
This is the compiler error:
This PR is a proper fix for #856.