From 3ac4d60c6b97c367eeee717d2401a5243fd2b6a1c43c513ce316011ade149a94 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 2 May 2019 08:28:11 +0000 Subject: [PATCH] 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 --- ffmpeg-4.changes | 5 +++++ ffmpeg-4.spec | 6 ++++++ 2 files changed, 11 insertions(+) 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