Skip to content
Snippets Groups Projects
Commit b7eb8d01 authored by Alexander A. Klimov's avatar Alexander A. Klimov :sunglasses:
Browse files

Disable LTO build

parent cb5ecb3f
No related branches found
No related tags found
1 merge request!22Disable LTO build
Pipeline #17945 passed
...@@ -364,14 +364,9 @@ CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_UNITY_BUILD=ON" ...@@ -364,14 +364,9 @@ CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_UNITY_BUILD=ON"
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_UNITY_BUILD=OFF" CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_UNITY_BUILD=OFF"
%endif %endif
# Disable LTO build for older compiler versions # Disable LTO build, see https://github.com/Icinga/icinga2/issues/7149
# see https://github.com/Icinga/icinga2/issues/7149
# lto1: internal compiler error: in prune_unused_types_prune, at dwarf2out.c # 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")
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_LTO_BUILD=ON"
%else # suse_version 1315
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_LTO_BUILD=OFF" CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_LTO_BUILD=OFF"
%endif # suse_version 1315
%if %{with systemd_and_init} %if %{with systemd_and_init}
CMAKE_OPTS="$CMAKE_OPTS -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=ON" CMAKE_OPTS="$CMAKE_OPTS -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=ON"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment