From 6835503d55d3f2c1876c79da46e4e4bf4877434d Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 25 Nov 2021 14:33:11 +0100 Subject: [PATCH] Disable LTO --- elfutils.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/elfutils.spec b/elfutils.spec index 014bdba..3dce6cc 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -237,6 +237,10 @@ autoreconf -f -v -i find . -name \*.sh ! -perm -0100 -print | xargs chmod +x %build +# Disable LTO +# See https://sourceware.org/pipermail/elfutils-devel/2021q4/004385.html +%define _lto_cflags %{nil} + # Remove -Wall from default flags. The makefiles enable enough warnings # themselves, and they use -Werror. Appending -Wall defeats the cases where # the makefiles disable some specific warnings for specific code.