Thread: BUG #16933: [build-system] libpq doesn't check for every names of zlib

BUG #16933: [build-system] libpq doesn't check for every names of zlib

From
PG Bug reporting form
Date:
The following bug has been logged on the website:

Bug reference:      16933
Logged by:          Long Nguyen
Email address:      nguyen.long.908132@gmail.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.