Further restrict the scope of no-exit()-in-libpq test.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 3 Jul 2021 15:21:40 +0000 (11:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 3 Jul 2021 15:21:40 +0000 (11:21 -0400)
commit792259591c0fc19c42247fc7668b1064d1e850d4
tree8c3746426461d8c586b59b4a940054627da31872
parentd390bb62a6332f8a913c2c2021d56d6dba5a1dce
Further restrict the scope of no-exit()-in-libpq test.

Disable this check altogether in --enable-coverage builds,
because newer versions of gcc insert exit() as well as abort()
calls for that.  Also disable it on AIX and Solaris, because
those platforms tend to provide facilities such as libldap
as static libraries, which then get included in libpq's shlib.
We can't expect such libraries to honor our coding rules.
(That platform list might need additional tweaking, but I think
this is enough to keep the buildfarm happy.)

Per reports from Jacob Champion and Noah Misch.

Discussion: https://postgr.es/m/3128896.1624742969@sss.pgh.pa.us
src/interfaces/libpq/Makefile