From 048bfc20df735e46c91d8dd0ac11324644098e57 Mon Sep 17 00:00:00 2001 From: vascom Date: Tue, 21 Apr 2020 10:35:23 +0300 Subject: [PATCH] Enable LTO. Reduced binary size by 23%. --- celluloid.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/celluloid.spec b/celluloid.spec index 57caa00..b88e44b 100644 --- a/celluloid.spec +++ b/celluloid.spec @@ -1,6 +1,9 @@ +%global optflags %{optflags} -flto=auto +%global build_ldflags %{build_ldflags} -flto + Name: celluloid Version: 0.19 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A simple GTK+ frontend for mpv License: GPLv3+ @@ -30,6 +33,9 @@ It aims to be easy to use while maintaining high level of configurability. %autosetup -p1 %build +export AR=%{_bindir}/gcc-ar +export RANLIB=%{_bindir}/gcc-ranlib +export NM=%{_bindir}/gcc-nm %configure %make_build V=1 @@ -56,6 +62,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/io.github.celluloid_p %{_mandir}/man1/%{name}.1.* %changelog +* Tue Apr 21 2020 Vasiliy N. Glazov - 0.19-2 +- Enable LTO + * Thu Apr 09 2020 Vasiliy N. Glazov - 0.19-1 - Update to 0.19