Re-enable LTO

This commit is contained in:
Jeff Law 2020-10-10 12:19:05 -06:00
parent 0dc0eae751
commit 5e9ca6bc17

View File

@ -6,7 +6,7 @@
Name: libvpx Name: libvpx
Summary: VP8/VP9 Video Codec SDK Summary: VP8/VP9 Video Codec SDK
Version: 1.9.0 Version: 1.9.0
Release: 1%{?dist} Release: 2%{?dist}
License: BSD License: BSD
#Source0: http://downloads.webmproject.org/releases/webm/%{name}-%{version}.tar.bz2 #Source0: http://downloads.webmproject.org/releases/webm/%{name}-%{version}.tar.bz2
Source0: https://github.com/webmproject/libvpx/archive/v%{version}.tar.gz Source0: https://github.com/webmproject/libvpx/archive/v%{version}.tar.gz
@ -49,11 +49,6 @@ and decoder.
%patch0 -p1 -b .leave-fs-on %patch0 -p1 -b .leave-fs-on
%build %build
# This package fails to build with LTO due to undefined symbols. LTO
# was disabled in OpenSuSE as well, but with no real explanation why
# beyond the undefined symbols. It really shold be investigated further.
# Disable LTO
%define _lto_cflags %{nil}
%ifarch %{ix86} %ifarch %{ix86}
%global vpxtarget x86-linux-gcc %global vpxtarget x86-linux-gcc
@ -237,6 +232,9 @@ rm -rf %{buildroot}%{_prefix}/src
%{_bindir}/* %{_bindir}/*
%changelog %changelog
* Sat Oct 10 2020 Jeff Law <law@redhat.com> - 1.9.0-2
- Re-enable LTO
* Thu Aug 13 2020 Tom Callaway <spot@fedoraproject.org> - 1.9.0-1 * Thu Aug 13 2020 Tom Callaway <spot@fedoraproject.org> - 1.9.0-1
- update to 1.9.0 - update to 1.9.0