Disable LTO

This commit is contained in:
Mark Wielaard 2021-11-25 14:33:11 +01:00
parent 299f1fc7e3
commit 6835503d55
1 changed files with 4 additions and 0 deletions

View File

@ -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.