From 71fc9a4adafaf193c35a15561caf0922301d6e41 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" <alexander.klimov@icinga.com> Date: Fri, 21 May 2021 09:28:46 +0000 Subject: [PATCH] Disable LTO build --- icinga2.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/icinga2.spec b/icinga2.spec index 7c04204..4c3f219 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -371,11 +371,11 @@ CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_UNITY_BUILD=ON" %else CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_UNITY_BUILD=OFF" %endif -%if %{with lto_build} -CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_LTO_BUILD=ON" -%else + +# Disable LTO build, see https://github.com/Icinga/icinga2/issues/7149 +# lto1: internal compiler error: in prune_unused_types_prune, at dwarf2out.c CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_LTO_BUILD=OFF" -%endif + %if %{with systemd_and_init} CMAKE_OPTS="$CMAKE_OPTS -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=ON" %else -- GitLab