SHA256
1
0
forked from pool/ffmpeg-4

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

- Enable LTO for new SUSE versions (boo#1133123).

It's improved since sr#621917, the build takes by 20% longer on my 8-core machine.

OBS-URL: https://build.opensuse.org/request/show/700026
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-4?expand=0&rev=61
This commit is contained in:
Jan Engelhardt 2019-05-02 08:28:11 +00:00 committed by Git OBS Bridge
parent 5b720dc80f
commit 3ac4d60c6b
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 2 08:00:42 UTC 2019 - Martin Liška <mliska@suse.cz>
- Enable LTO for new SUSE versions (boo#1133123).
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 30 22:05:35 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net> Tue Apr 30 22:05:35 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>

View File

@ -573,6 +573,9 @@ break compatibility without any notice.
%build %build
CFLAGS="%optflags" \ CFLAGS="%optflags" \
%if %{suse_version} > 1500
LDFLAGS="%_lto_cflags" \
%endif
./configure \ ./configure \
--prefix="%_prefix" \ --prefix="%_prefix" \
--libdir="%_libdir" \ --libdir="%_libdir" \
@ -655,6 +658,9 @@ CFLAGS="%optflags" \
--enable-libzmq \ --enable-libzmq \
%endif %endif
--enable-libzvbi \ --enable-libzvbi \
%if 0%{?suse_version} > 1500
--enable-lto \
%endif
%if %{with lv2} %if %{with lv2}
--enable-lv2 \ --enable-lv2 \
%endif %endif