An example of a shared library-specific flag is -shared on linux or -dynamiclib 
on darwin.


________________________________
From: Peter Eisentraut <pe...@eisentraut.org>
Sent: Tuesday, June 17, 2025 7:01 PM
To: Matt Smith (matts3) <mat...@cisco.com>; pgsql-hack...@postgresql.org 
<pgsql-hack...@postgresql.org>
Subject: Re: [PATCH] Add an ldflags_sl meson build option

On 17.06.25 00:50, Matt Smith (matts3) wrote:
> 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.

Ok, but what kinds of flags does that build system want to pass through,
what kinds of effects are you looking for?

Reply via email to