Re: [PATCH] Add an ldflags_sl meson build option

Поиск
Список
Период
Сортировка
От Matt Smith (matts3)
Тема Re: [PATCH] Add an ldflags_sl meson build option
Дата
Msg-id MW6PR11MB8310CB3957C87AA39046ADB68C70A@MW6PR11MB8310.namprd11.prod.outlook.com
обсуждение исходный текст
Ответ на Re: [PATCH] Add an ldflags_sl meson build option  (Peter Eisentraut <peter@eisentraut.org>)
Список 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@eisentraut.org>
Sent: Monday, June 16, 2025 9:32 PM
To: Matt Smith (matts3) <matts3@cisco.com>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.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?

В списке pgsql-hackers по дате отправления: