From 5f181ed00bf9faaf1f8d37d5c8264a74f60d9124 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Mon, 5 Dec 2022 17:12:55 +0100 Subject: [PATCH] Renabling LTO except on s390 and s390x PCRE backtracking limit problem should not happen anymore in redhat-rpm-config Resolves: rhbz#2118567 --- llvm.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm.spec b/llvm.spec index 4255d3b..f6f4786 100644 --- a/llvm.spec +++ b/llvm.spec @@ -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