Setting ld option in meson so that "--no-undefined" option can be toggled

Emil Velikov emil.l.velikov at gmail.com
Wed Nov 10 23:07:19 UTC 2021


On Sat, 6 Nov 2021 at 07:27, Budi <budikusasi at gmail.com> wrote:
>
> How are ww setting ld option in meson so that "--no-undefined" option
> can be omitted or toggled off and it'll link without this command
> option

b_lundef is a standard meson option - see the documentation [1]. In
99% of the cases you do not want any undefined references in your
binaries.
>From the rest - for 0.9% you can rework the design to avoid them...
the final 0.1% there is no way around but to leave as-is.

-Emil
[1] https://mesonbuild.com/Builtin-options.html#base-options


More information about the pacman-dev mailing list