Blame 0001-Filter-lto-options-from-the-perl-ccopts.patch

Justin M. Forbes 589a32
From 0bb5b5c25185608e54a8dc90a212ee68f6add783 Mon Sep 17 00:00:00 2001
Justin M. Forbes 589a32
From: "Justin M. Forbes" <jforbes@fedoraproject.org>
Justin M. Forbes 589a32
Date: Thu, 10 Sep 2020 10:54:55 -0500
Justin M. Forbes 589a32
Subject: [PATCH] Filter lto options from the perl ccopts
Justin M. Forbes 589a32
Justin M. Forbes 589a32
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
Justin M. Forbes 589a32
---
Justin M. Forbes 589a32
 tools/perf/Makefile.config | 1 +
Justin M. Forbes 589a32
 1 file changed, 1 insertion(+)
Justin M. Forbes 589a32
Justin M. Forbes 589a32
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
Justin M. Forbes 589a32
index 190be4fa5c21..84fc2ce5b631 100644
Justin M. Forbes 589a32
--- a/tools/perf/Makefile.config
Justin M. Forbes 589a32
+++ b/tools/perf/Makefile.config
Justin M. Forbes 589a32
@@ -748,6 +748,7 @@ else
Justin M. Forbes 589a32
   PERL_EMBED_LIBADD = $(call grep-libs,$(PERL_EMBED_LDOPTS))
Justin M. Forbes 589a32
   PERL_EMBED_CCOPTS = $(shell perl -MExtUtils::Embed -e ccopts 2>/dev/null)
Justin M. Forbes 589a32
   PERL_EMBED_CCOPTS := $(filter-out -specs=%,$(PERL_EMBED_CCOPTS))
Justin M. Forbes 589a32
+  PERL_EMBED_CCOPTS := $(filter-out -flto=auto -ffat-lto-objects, $(PERL_EMBED_CCOPTS))
Justin M. Forbes 589a32
   PERL_EMBED_LDOPTS := $(filter-out -specs=%,$(PERL_EMBED_LDOPTS))
Justin M. Forbes 589a32
   FLAGS_PERL_EMBED=$(PERL_EMBED_CCOPTS) $(PERL_EMBED_LDOPTS)
Justin M. Forbes 589a32
Justin M. Forbes 589a32
-- 
Justin M. Forbes 589a32
2.28.0
Justin M. Forbes 589a32