meson: libpq: Revise static / shared library setup
authorAndres Freund <andres@anarazel.de>
Wed, 5 Oct 2022 16:56:05 +0000 (09:56 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 5 Oct 2022 16:56:05 +0000 (09:56 -0700)
commit089c0bc7a760ea8f654a054dc8363e7f0baf79a2
treeac128315ec95fea3557efe3cfabea6e5a5c0d25f
parent29668e31865aa0442cd181ec7ee514295ef3578b
meson: libpq: Revise static / shared library setup

Improvements:
- we don't need -DFRONTEND for libpq anymore since 1d77afefbd1
- the .pc file contents for a static libpq were wrong (referencing
  {pgport, common}_shlib)
- incidentally fixes meson not supporting link_whole on AIX yet
- added explanatory comments

Previously I tried to avoid building libpq's sources twice, once for the
static and once for the shared library. We could still do so, but it's not
clear that it's worth the complication.

Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
meson.build
src/interfaces/libpq/meson.build