From ff5639876b08ef13fb9890b0f19800d40d7ee681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Thu, 14 Oct 2021 17:56:14 +0200 Subject: [PATCH] Do not build non-lto objects to reduce build time significantly --- cmake.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake.spec b/cmake.spec index cb4cf5f..1f6367c 100644 --- a/cmake.spec +++ b/cmake.spec @@ -48,6 +48,9 @@ # Enable X11 tests %bcond_without X11_test +# Do not build non-lto objects to reduce build time significantly. +%global optflags %(echo '%{optflags}' | sed -e 's!-ffat-lto-objects!-fno-fat-lto-objects!g') + # Place rpm-macros into proper location %global rpm_macros_dir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) @@ -519,6 +522,7 @@ popd * Thu Oct 14 2021 Björn Esser - 3.22.0-0.1.rc1 - cmake-3.22.0-rc1 Fixes rhbz#2014190 +- Do not build non-lto objects to reduce build time significantly * Mon Sep 20 2021 Björn Esser - 3.21.3-1 - cmake-3.21.3