Re-enable LTO

This commit is contained in:
Jeff Law 2020-07-31 18:39:00 -06:00
parent e315473f6c
commit 7bb2daa612

View File

@ -2,7 +2,7 @@
Summary: A GNU collection of binary utilities
Name: %{?cross}binutils%{?_with_debug:-debug}
Version: 2.35
Release: 9%{?dist}
Release: 10%{?dist}
License: GPLv3+
URL: https://sourceware.org/binutils
@ -418,11 +418,6 @@ touch */configure
#----------------------------------------------------------------------------
%build
# LTO is triggering a bug in ld which in turn causes ld to create incorrect
# binaries. It is not yet clear how serious this bug is (still debugging).
# Until that analysis is finished I am disabling LTO
%define _lto_cflags %{nil}
echo target is %{binutils_target}
%ifarch %{power64}
@ -815,6 +810,9 @@ exit 0
#----------------------------------------------------------------------------
%changelog
* Fri Jul 31 2020 Jeff Law <nickc@redhat.com> - 2.35-10
- Re-enable LTO
* Fri Jul 31 2020 Jeff Law <nickc@redhat.com> - 2.35-9
- Disable LTO for bootstrapping purposes