1 pgbouncer's configure doesn't care about 32- and 64-bit support. We need to add the correct path component to our 64-bit libs.
3 --- pgbouncer-1.17.0/configure.orig 2022-03-23 11:01:59.000000000 +0000
4 +++ pgbouncer-1.17.0/configure 2022-06-25 13:28:51.462248946 +0000
8 TLS_CPPFLAGS="-I$withval/include"
9 - TLS_LDFLAGS="-L$withval/lib"
10 + TLS_LDFLAGS="-L$withval/lib/64"
11 TLS_LIBS="-lssl -lcrypto"