[Buildroot] [PATCH 1/1] package/systemd: disable with -Ofast

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Feb 21 20:26:34 UTC 2023


On Tue, 21 Feb 2023 21:08:57 +0100
"Yann E. MORIN" <yann.morin.1998 at free.fr> wrote:

> Alternatively, as the upstream commit also implies, maybe we should in
> this case keep -Ofast and just add:
> 
>     SYSTEMD_CFLAGS = $(TARGET_CFLAGS) -fno-finite-math-only

But the upstream commit causes the build to bail out as soon as -Ofast
is in the CFLAGS, so even if you specify -Ofast -fno-finite-math-only,
systemd's meson machinery will bail out.

So your other idea of:

SYSTEMD_CFLAGS = $(filter-out -Ofast,$(TARGET_CFLAGS))

certainly looks very relevant.

Fabrice, could you give it a try?

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com



More information about the buildroot mailing list