From c3028f2aadbcc4ee6344a95ab6900516b80909c6b009bf8c9b2153c63e818d72 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 14 May 2019 12:15:36 +0000 Subject: [PATCH] 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 --- ffmpeg-4.changes | 5 +++++ ffmpeg-4.spec | 14 ++++++++++++++ 2 files changed, 19 insertions(+) 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