Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Right, we need to keep libpq in CPPFLAGS, but we can remove it from
> SHLIB_LINK.
Buildfarm member anole says otherwise. I suspected something like that
might happen --- if memory serves, there are platforms where you have to
list all required libraries on the link line, even if some of them are
only indirect dependencies of shlibs you are linking in.
I think you need to revert 3780fc6.
regards, tom lane