From: "Justin M. Forbes" <jforbes@xxxxxxxxxxxxxxxxx> Kernel tools currently does not build with LTO options enabled. We can turn off the option in most places through the spec file, but for the perl bindings, it auto detects what perl was built with and uses those. This patch will filter out the lto options allowing kernel-tools packages to build correctly. I expect this patch to go away when the LTO issues are worked out upstream. Upstream Status: Red Hat only Signed-off-by: Justin M. Forbes <jforbes@xxxxxxxxxxxxxxxxx> --- tools/perf/Makefile.config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 513633809c81..e7f0aaddc91f 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -740,6 +740,7 @@ else PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS)) PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null) PERL_EMBED_CCOPTS := $(filter-out -specs=%,$(PERL_EMBED_CCOPTS)) + PERL_EMBED_CCOPTS := $(filter-out -flto=auto -ffat-lto-objects, $(PERL_EMBED_CCOPTS)) PERL_EMBED_LDOPTS := $(filter-out -specs=%,$(PERL_EMBED_LDOPTS)) FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS) -- GitLab _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx