pgsql: Link libpq with libdl if the platform needs that.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Link libpq with libdl if the platform needs that.
Date: 2025-07-09 18:21:16
Message-ID: E1uZZPw-005SrS-0a@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/1328170.1752082586@sss.pgh.pa.us
Backpatch-through: 18

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7bd752c1fb8eb300f0011ad9bcdbf96cb1ad64e2

Modified Files
--------------
src/interfaces/libpq/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2025-07-09 23:20:25 pgsql: Use pg_assume() to avoid compiler warning below exec_set_found()
Previous Message Tom Lane 2025-07-09 15:49:55 Re: pgsql: Fix up misuse of "volatile" in contrib/xml2.