Disable LTO for anything older than Fedora 34

This commit is contained in:
Konrad Kleine 2021-11-12 18:05:03 +01:00
parent baf25538e5
commit 6256376e3f

View file

@ -246,6 +246,11 @@ LLVM's modified googletest sources.
%global _lto_cflags -flto=thin
%endif
# Disable LTO when building snapshots for Fedora 34 or lower
%if 0%{?fedora} <= 34
%global _lto_cflags %{nil}
%endif
%ifarch s390 s390x %{arm} %ix86
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')