Re: [PATCH v2] perf build: filter all combinations of -flto for libperl

From: Namhyung Kim
Date: Mon Mar 24 2025 - 12:36:14 EST


On Fri, 21 Mar 2025 09:20:39 +0100, Holger Hoffstätte wrote:
> When enabling the libperl feature the build uses perl's build flags
> (ccopts) but filters out various flags, e.g. for LTO.
> While this is conceptually correct, it is insufficient in practice,
> since only "-flto=auto" is filtered out. When perl itself is built with
> "-flto" this can cause parts of perf being built with LTO and others
> without, giving exciting build errors like e.g.:
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung