summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/no_lto.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/systemd-bootchart/systemd-bootchart/no_lto.patch')
-rw-r--r--meta/recipes-devtools/systemd-bootchart/systemd-bootchart/no_lto.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/no_lto.patch b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/no_lto.patch
new file mode 100644
index 0000000000..1fdf8dbcc2
--- /dev/null
+++ b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/no_lto.patch
@@ -0,0 +1,19 @@
1LTO output is not reproducible. Until it is, disable this. Sadly
2there is no configuration option to do so at this time.
3
4Upstream-Status: Pending [may be accept addition of configuration option?]
5RP 2021/3/1
6
7Index: git/configure.ac
8===================================================================
9--- git.orig/configure.ac
10+++ git/configure.ac
11@@ -124,7 +124,7 @@ AS_CASE([$CC], [*clang*],
12
13 AS_CASE([$CFLAGS], [*-O[[12345sz\ ]]*],
14 [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
15- -flto -ffat-lto-objects])],
16+ ])],
17 [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
18 AC_SUBST([OUR_CFLAGS], "$with_cflags $sanitizer_cflags")
19