Blame 0001-Filter-out-link-time-optimization.patch

Jeremy Cline a9f3f7
From 4ce888f590a227a7fb2fba093cff3f9423337170 Mon Sep 17 00:00:00 2001
Jeremy Cline a9f3f7
From: Jeremy Cline <jeremy@jcline.org>
Jeremy Cline a9f3f7
Date: Fri, 29 Jun 2018 18:13:40 +0000
Jeremy Cline a9f3f7
Subject: [PATCH] Filter out link-time optimization
Jeremy Cline a9f3f7
Jeremy Cline a9f3f7
Python 3.7 adds some new cflags to "python3-config --cflags" and perf is
Jeremy Cline a9f3f7
picking these up for a subset of the files it builds. These include
Jeremy Cline a9f3f7
-flto, but nothing else is built with link-time optimization and the
Jeremy Cline a9f3f7
linker is not happy about this. This is a quick fix since Python 3.7 is
Jeremy Cline a9f3f7
about to be merged into Rawhide.
Jeremy Cline a9f3f7
Jeremy Cline a9f3f7
Signed-off-by: Jeremy Cline <jeremy@jcline.org>
Jeremy Cline a9f3f7
---
Jeremy Cline a9f3f7
 tools/perf/Makefile.config | 1 +
Jeremy Cline a9f3f7
 1 file changed, 1 insertion(+)
Jeremy Cline a9f3f7
Jeremy Cline a9f3f7
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
Jeremy Cline a9f3f7
index b5ac356ba323..be39d7862ae2 100644
Jeremy Cline a9f3f7
--- a/tools/perf/Makefile.config
Jeremy Cline a9f3f7
+++ b/tools/perf/Makefile.config
Jeremy Cline a9f3f7
@@ -209,6 +209,7 @@ ifdef PYTHON_CONFIG
Jeremy Cline a9f3f7
   PYTHON_EMBED_LIBADD := $(call grep-libs,$(PYTHON_EMBED_LDOPTS)) -lutil
Jeremy Cline a9f3f7
   PYTHON_EMBED_CCOPTS := $(shell $(PYTHON_CONFIG_SQ) --cflags 2>/dev/null)
Jeremy Cline a9f3f7
   PYTHON_EMBED_CCOPTS := $(filter-out -specs=%,$(PYTHON_EMBED_CCOPTS))
Jeremy Cline a9f3f7
+  PYTHON_EMBED_CCOPTS := $(filter-out -flto%,$(PYTHON_EMBED_CCOPTS))
Jeremy Cline a9f3f7
   FLAGS_PYTHON_EMBED := $(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS)
Jeremy Cline a9f3f7
 endif
Jeremy Cline a9f3f7
 
Jeremy Cline a9f3f7
-- 
Jeremy Cline a9f3f7
2.17.1
Jeremy Cline a9f3f7