From a302c156231a4135241e4755034eaad733b79708 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 13 Jun 2016 13:00:09 +0100 Subject: [PATCH] Enable support for GCC's LTO. Resolves: #1342618 --- binutils.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/binutils.spec b/binutils.spec index e648735..7c7edce 100644 --- a/binutils.spec +++ b/binutils.spec @@ -16,11 +16,13 @@ # BZ 1124342: Provide a way to enable deterministic archives. # BZ 1195883: But do not do this by default. %define enable_deterministic_archives 0 +# BZ 1342618: Enable support for GCC LTO compilation. +%define enable_lto 1 Summary: A GNU collection of binary utilities Name: %{?cross}binutils%{?_with_debug:-debug} Version: 2.26 -Release: 22%{?dist} +Release: 23%{?dist} License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils @@ -292,10 +294,14 @@ CFLAGS="$CFLAGS -O0 -ggdb2 -Wno-error -D_FORTIFY_SOURCE=0" --enable-deterministic-archives \ %else --enable-deterministic-archives=no \ +%endif +%if %{enable_lto} + --enable-lto \ %endif $CARGS \ --enable-plugins \ --with-bugurl=http://bugzilla.redhat.com/bugzilla/ + make %{_smp_mflags} tooldir=%{_prefix} all make %{_smp_mflags} tooldir=%{_prefix} info @@ -513,6 +519,10 @@ exit 0 %endif # %{isnative} %changelog +* Mon Jun 13 2016 Nick Clifton 2.26-23 +- Enable support for GCC's LTO. + (#1342618) + * Thu Jun 02 2016 Nick Clifton 2.26-22 - Retire the copy-osabi patch. (#1252066)