Link libpq with libdl if the platform needs that.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 9 Jul 2025 18:21:00 +0000 (14:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 9 Jul 2025 18:21:06 +0000 (14:21 -0400)
commit4df477153a6b9339acafbf4162fd8fa3f33e89d2
tree3b9e1070c59ae6dec88aca94daa77edd126ffa0f
parent53cd0b71ee2e99c611a38ce58636a04d5dde4cc1
Link libpq with libdl if the platform needs that.

Since b0635bfda, libpq uses dlopen() and related functions.  On some
platforms these are not supplied by libc, but by a separate library
libdl, in which case we need to make sure that that dependency is
known to the linker.  Meson seems to take care of that automatically,
but the Makefile didn't cater for it.

Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/1328170.1752082586@sss.pgh.pa.us
Backpatch-through: 18
src/interfaces/libpq/Makefile