From 40c8764fc5b8dbbe5aff69bdc89a135c983312df Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 12 Feb 2022 13:12:06 +0100 Subject: [PATCH] Disable LTO for arm and x86 --- ffmpeg.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ffmpeg.spec b/ffmpeg.spec index 3417f59..1d3cce0 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -8,7 +8,7 @@ %global pkg_suffix -free # Fails due to asm issue -%ifarch %{ix86} %arm +%ifarch %{ix86} %{arm} %bcond_with lto %else %bcond_without lto @@ -48,6 +48,10 @@ %bcond_with xvid %endif +%if %{without lto} +%global _lto_cflags %{nil} +%endif + %global av_codec_soversion 59 %global av_device_soversion 59 %global av_filter_soversion 8