From 407fbaf169adca3cb43629efc0519029cbccf955 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Tue, 1 Mar 2022 11:13:53 +0100 Subject: [PATCH] Workaround linker error: memory exhausted By disabling LTO for `%ix86` architecture. This is the error: ``` /usr/bin/ld: /tmp/lto-llvm-a7a7f6.o: error adding symbols: memory exhausted ``` --- llvm.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index 7e65a0b..d2835b7 100644 --- a/llvm.spec +++ b/llvm.spec @@ -237,7 +237,7 @@ LLVM's modified googletest sources. %build -%ifarch s390 s390x +%ifarch s390 s390x %ix86 # Fails with "exceeded PCRE's backtracking limit" %global _lto_cflags %nil %else