Renabling LTO except on s390 and s390x

PCRE backtracking limit problem should not happen anymore in redhat-rpm-config

Resolves: rhbz#2118567
This commit is contained in:
Konrad Kleine 2022-12-05 17:12:55 +01:00
parent 7a457315e6
commit 5f181ed00b

View File

@ -259,12 +259,12 @@ mv %{cmake_srcdir} cmake
%build
#ifarch s390 s390x
%ifarch s390 s390x
# Fails with "exceeded PCRE's backtracking limit"
%global _lto_cflags %nil
#else
#global _lto_cflags -flto=thin
#endif
%else
%global _lto_cflags -flto=thin
%endif
%ifarch s390 s390x %{arm} %ix86
# Decrease debuginfo verbosity to reduce memory consumption during final library linking