From 185fed6d60d52d76269338d09edff778a17a26ea Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Mon, 13 May 2019 14:44:53 +0200 Subject: [PATCH] Disable LTO on older SUSE versions Mainly for SLES 12.3 and openSUSE 42.3 fixes Icinga/icinga2#7149 --- icinga2.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/icinga2.spec b/icinga2.spec index 18eb242..01ca12d 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -68,7 +68,14 @@ %bcond_without unity_build %endif +# Disable lto_build for older SUSE versions +# see https://github.com/Icinga/icinga2/issues/7149 +%if "%{_vendor}" == "suse" && 0%{?suse_version} <= 1315 +%bcond_with lto_build +%else # suse_version 1315 %bcond_without lto_build +%endif # suse_version 1315 + %bcond_with systemd_and_init %bcond_without compat %bcond_without livestatus