diff --git a/ffmpeg-4.changes b/ffmpeg-4.changes index 4735922..7341a30 100644 --- a/ffmpeg-4.changes +++ b/ffmpeg-4.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 14 11:38:01 UTC 2019 - Martin Liška + +- Enable LTO for all except i586 (boo#1133123). + ------------------------------------------------------------------- Sun May 5 19:54:07 UTC 2019 - Bjørn Lie diff --git a/ffmpeg-4.spec b/ffmpeg-4.spec index c58da48..ea32e5b 100644 --- a/ffmpeg-4.spec +++ b/ffmpeg-4.spec @@ -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