The following bug has been logged on the website:
Bug reference: 16933
Logged by: Long Nguyen
Email address: nguyen(dot)long(dot)908132(at)gmail(dot)com
PostgreSQL version: 12.2
Operating system: Windows 10
Description:
On Windows with Mingw-w64, the zlib library compiled with CMake has the name
libzlib.a (release) and libzlibd.a (debug). When I configure, it only checks
for -lz, not -lzlib and -lzlibd, so it ends up not being able to find zlib.
We need to check for those aside from the default -lz.