Disable LTO to speed up builds

This commit is contained in:
Konrad Kleine 2023-01-20 11:17:52 +00:00
parent 696e9bc779
commit 225c9e3c44

View file

@ -253,6 +253,11 @@ mv %{third_party_srcdir} third-party
%build
# Disable LTO to speed up builds
%if %{with snapshot_build}
%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 /')