The erlang autoconf defaults to using a statically linked zlib. The "--enable-shared-zlib" flag has to be passed to econf to use a shared zlib. Reproducible: Always Steps to Reproduce:
Created attachment 221921 [details, diff] Patch to enable a shared zlib
Fixed, thanks for your contribution.