Disable LTO on older SUSE versions

Mainly for SLES 12.3 and openSUSE 42.3

fixes Icinga/icinga2#7149
This commit is contained in:
Markus Frosch 2019-05-13 14:44:53 +02:00
parent b3599f648a
commit 185fed6d60

View File

@ -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