pgsql: Improve meson's detection of perl build flags

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve meson's detection of perl build flags
Date: 2024-09-14 14:37:41
Message-ID: E1spTu9-0015Xn-He@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve meson's detection of perl build flags

The current method of detecting perl build flags breaks if the path to
perl contains a space. This change makes two improvements. First,
instead of getting a list of ldflags and ccdlflags and then trying to
filter those out of the reported ldopts, we tell perl to suppress
reporting those in the first instance. Second, it tells perl to parse
those and output them, one per line. Thus any space on the option in a
file name, for example, is preserved.

Issue reported off-list by Muralikrishna Bandaru

Discussion: https://postgr.es/01117f88-f465-bf6c-9362-083bd72ca305(at)dunslane(dot)net

Backpatch to release 16.

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/cb52d1cdd1031d3b0d66a001b7b153990a0497c8

Modified Files
--------------
meson.build | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2024-09-14 14:38:42 pgsql: doc PG 17 relnotes: update to current
Previous Message Bruce Momjian 2024-09-14 13:27:46 pgsql: doc PG 17 relnotes: move EXPLAIN items to their own section