diff --git a/ffmpeg-4.changes b/ffmpeg-4.changes index d4f5926..5009cf8 100644 --- a/ffmpeg-4.changes +++ b/ffmpeg-4.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 2 08:00:42 UTC 2019 - Martin Liška + +- Enable LTO for new SUSE versions (boo#1133123). + ------------------------------------------------------------------- Tue Apr 30 22:05:35 UTC 2019 - Hans-Peter Jansen diff --git a/ffmpeg-4.spec b/ffmpeg-4.spec index 8b09959..64ba147 100644 --- a/ffmpeg-4.spec +++ b/ffmpeg-4.spec @@ -573,6 +573,9 @@ break compatibility without any notice. %build CFLAGS="%optflags" \ +%if %{suse_version} > 1500 +LDFLAGS="%_lto_cflags" \ +%endif ./configure \ --prefix="%_prefix" \ --libdir="%_libdir" \ @@ -655,6 +658,9 @@ CFLAGS="%optflags" \ --enable-libzmq \ %endif --enable-libzvbi \ +%if 0%{?suse_version} > 1500 + --enable-lto \ +%endif %if %{with lv2} --enable-lv2 \ %endif