Enable support for GCC's LTO.

Resolves: #1342618
This commit is contained in:
Nick Clifton 2016-06-13 13:00:09 +01:00
parent 438d506569
commit a302c15623
1 changed files with 11 additions and 1 deletions

View File

@ -16,11 +16,13 @@
# BZ 1124342: Provide a way to enable deterministic archives. # BZ 1124342: Provide a way to enable deterministic archives.
# BZ 1195883: But do not do this by default. # BZ 1195883: But do not do this by default.
%define enable_deterministic_archives 0 %define enable_deterministic_archives 0
# BZ 1342618: Enable support for GCC LTO compilation.
%define enable_lto 1
Summary: A GNU collection of binary utilities Summary: A GNU collection of binary utilities
Name: %{?cross}binutils%{?_with_debug:-debug} Name: %{?cross}binutils%{?_with_debug:-debug}
Version: 2.26 Version: 2.26
Release: 22%{?dist} Release: 23%{?dist}
License: GPLv3+ License: GPLv3+
Group: Development/Tools Group: Development/Tools
URL: http://sources.redhat.com/binutils URL: http://sources.redhat.com/binutils
@ -292,10 +294,14 @@ CFLAGS="$CFLAGS -O0 -ggdb2 -Wno-error -D_FORTIFY_SOURCE=0"
--enable-deterministic-archives \ --enable-deterministic-archives \
%else %else
--enable-deterministic-archives=no \ --enable-deterministic-archives=no \
%endif
%if %{enable_lto}
--enable-lto \
%endif %endif
$CARGS \ $CARGS \
--enable-plugins \ --enable-plugins \
--with-bugurl=http://bugzilla.redhat.com/bugzilla/ --with-bugurl=http://bugzilla.redhat.com/bugzilla/
make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} all
make %{_smp_mflags} tooldir=%{_prefix} info make %{_smp_mflags} tooldir=%{_prefix} info
@ -513,6 +519,10 @@ exit 0
%endif # %{isnative} %endif # %{isnative}
%changelog %changelog
* Mon Jun 13 2016 Nick Clifton <nickc@redhat.com> 2.26-23
- Enable support for GCC's LTO.
(#1342618)
* Thu Jun 02 2016 Nick Clifton <nickc@redhat.com> 2.26-22 * Thu Jun 02 2016 Nick Clifton <nickc@redhat.com> 2.26-22
- Retire the copy-osabi patch. - Retire the copy-osabi patch.
(#1252066) (#1252066)