| From: | "Matt Smith (matts3)" <matts3(at)cisco(dot)com> |
|---|---|
| To: | Peter Eisentraut <peter(at)eisentraut(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: [PATCH] Add an ldflags_sl meson build option |
| Date: | 2025-06-16 22:50:36 |
| Message-ID: | MW6PR11MB8310CB3957C87AA39046ADB68C70A@MW6PR11MB8310.namprd11.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
I have a Bazel toolchain that sets different linker flags for exe/shared lib.
I wanted to build postgresql shared libs with meson using the same toolchain flags that I build all my other 3rd party deps in Bazel.
Currently for postgresql builds, we set LDFLAGS to the Bazel toolchain executable flags which means that any postgresql shared_library() gets the exe flags.
I noticed ldflags_sl was already setup to pass through shared_library flags, but I couldn't find a way to set it via meson build options.
________________________________
From: Peter Eisentraut <peter(at)eisentraut(dot)org>
Sent: Monday, June 16, 2025 9:32 PM
To: Matt Smith (matts3) <matts3(at)cisco(dot)com>; pgsql-hackers(at)postgresql(dot)org <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Add an ldflags_sl meson build option
On 16.06.25 06:10, Matt Smith (matts3) wrote:
> Currently there doesn't seem to be a way to pass shared library-specific
> flags via a meson build option.
>
> This patch allows the existing ldflags_sl to be set via a build option.
What uses do you have in mind for this?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David Rowley | 2025-06-16 22:50:55 | Re: Make tuple deformation faster |
| Previous Message | Corey Huinker | 2025-06-16 22:44:49 | Re: Allow pg_dump --statistics-only to dump foreign table statistics? |