Enable LTO. Reduced binary size by 23%.

el8
vascom 5 years ago
parent 08c677f98e
commit 048bfc20df

@ -1,6 +1,9 @@
%global optflags %{optflags} -flto=auto
%global build_ldflags %{build_ldflags} -flto
Name: celluloid Name: celluloid
Version: 0.19 Version: 0.19
Release: 1%{?dist} Release: 2%{?dist}
Summary: A simple GTK+ frontend for mpv Summary: A simple GTK+ frontend for mpv
License: GPLv3+ License: GPLv3+
@ -30,6 +33,9 @@ It aims to be easy to use while maintaining high level of configurability.
%autosetup -p1 %autosetup -p1
%build %build
export AR=%{_bindir}/gcc-ar
export RANLIB=%{_bindir}/gcc-ranlib
export NM=%{_bindir}/gcc-nm
%configure %configure
%make_build V=1 %make_build V=1
@ -56,6 +62,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/io.github.celluloid_p
%{_mandir}/man1/%{name}.1.* %{_mandir}/man1/%{name}.1.*
%changelog %changelog
* Tue Apr 21 2020 Vasiliy N. Glazov <vascom2@gmail.com> - 0.19-2
- Enable LTO
* Thu Apr 09 2020 Vasiliy N. Glazov <vascom2@gmail.com> - 0.19-1 * Thu Apr 09 2020 Vasiliy N. Glazov <vascom2@gmail.com> - 0.19-1
- Update to 0.19 - Update to 0.19

Loading…
Cancel
Save