On Sun, Dec 2, 2018 at 12:15 AM John David Anglin <dave.ang...@bell.net> wrote:
> > Thus it would seem that this is not a bug in Meson, but instead in > > systemd's build setup as the pie arguments are added by the latter. > I agree but Michael doesn't have a clear idea how to fix the issue. > Would the "b_pie" option help? The correct way to enable PIE executables with Meson is to remove all your own compiler and link flags related to pie and set b_pie to true. This is a fairly new feature and probably the reason why systemd is not using it. If this does not do the right thing then that is a bug in Meson and we need to fix it.