diff --git a/0001-Filter-lto-options-from-the-perl-ccopts.patch b/0001-Filter-lto-options-from-the-perl-ccopts.patch new file mode 100644 index 0000000..8d609a6 --- /dev/null +++ b/0001-Filter-lto-options-from-the-perl-ccopts.patch @@ -0,0 +1,25 @@ +From 0bb5b5c25185608e54a8dc90a212ee68f6add783 Mon Sep 17 00:00:00 2001 +From: "Justin M. Forbes" +Date: Thu, 10 Sep 2020 10:54:55 -0500 +Subject: [PATCH] Filter lto options from the perl ccopts + +Signed-off-by: Justin M. Forbes +--- + tools/perf/Makefile.config | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config +index 190be4fa5c21..84fc2ce5b631 100644 +--- a/tools/perf/Makefile.config ++++ b/tools/perf/Makefile.config +@@ -748,6 +748,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) + +-- +2.28.0 +