SHA256
1
0
forked from pool/ffmpeg-4

Accepting request 702826 from home:marxin:branches:multimedia:libs

- Enable LTO for all except i586 (boo#1133123).

OBS-URL: https://build.opensuse.org/request/show/702826
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-4?expand=0&rev=68
This commit is contained in:
Jan Engelhardt 2019-05-14 12:15:36 +00:00 committed by Git OBS Bridge
parent 136cd8a1ec
commit c3028f2aad
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 14 11:38:01 UTC 2019 - Martin Liška <mliska@suse.cz>
- Enable LTO for all except i586 (boo#1133123).
-------------------------------------------------------------------
Sun May 5 19:54:07 UTC 2019 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -567,8 +567,16 @@ break compatibility without any notice.
%autopatch -p1
%build
%ifarch %ix86
%define _lto_cflags %{nil}
%endif
CFLAGS="%optflags" \
%if %{suse_version} > 1500
%ifarch %ix86
%else
LDFLAGS="%_lto_cflags" \
%endif
%endif
./configure \
--prefix="%_prefix" \
--libdir="%_libdir" \
@ -648,6 +656,12 @@ CFLAGS="%optflags" \
--enable-libzmq \
%endif
--enable-libzvbi \
%if 0%{?suse_version} > 1500
%ifarch %ix86
%else
--enable-lto \
%endif
%endif
%if %{with lv2}
--enable-lv2 \
%endif