From 3583b30dcf88dddc25cd6a1830049c0a1f2f656a Mon Sep 17 00:00:00 2001
From: "Alexander A. Klimov" <alexander.klimov@icinga.com>
Date: Tue, 9 Feb 2021 11:37:12 +0100
Subject: [PATCH] Disable LTO on SLES v12.5

---
 icinga2.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/icinga2.spec b/icinga2.spec
index ebb9ca0..519bd5b 100644
--- a/icinga2.spec
+++ b/icinga2.spec
@@ -71,7 +71,7 @@
 # Disable lto_build for older compiler versions
 # see https://github.com/Icinga/icinga2/issues/7149
 # lto1: internal compiler error: in prune_unused_types_prune, at dwarf2out.c
-%if "%{_vendor}" == "suse" && 0%{?suse_version} <= 1315 || "%{_vendor}" == "redhat" && (0%{?el7} || 0%{?rhel} == 7 || "%{?dist}" == ".el7")
+%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1315 || "%{_vendor}" == "redhat" && (0%{?el7} || 0%{?rhel} == 7 || "%{?dist}" == ".el7")
 %bcond_with lto_build
 %else # suse_version 1315
 %bcond_without lto_build
-- 
GitLab