From f10da8ae842479034ecf6af77cbc179baaccbb42 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sep 27 2020 12:03:41 +0000 Subject: Add option to disable lto This makes the build noticably faster. --- diff --git a/systemd.spec b/systemd.spec index aeccbc9..919650e 100644 --- a/systemd.spec +++ b/systemd.spec @@ -16,6 +16,7 @@ # cryptsetup, e.g. when re-building cryptsetup on a json-c SONAME-bump. %bcond_with bootstrap %bcond_without tests +%bcond_without lto Name: systemd Url: https://www.freedesktop.org/wiki/Software/systemd @@ -420,7 +421,11 @@ CONFIGURE_OPTS=( -Dnobody-group=nobody -Dsplit-usr=false -Dsplit-bin=true +%if %{with lto} -Db_lto=true +%else + -Db_lto=false +%endif -Db_ndebug=false -Dman=true -Dversion-tag=v%{version}-%{release}