Explicitly opt out of LTO in RPM builds. (#11644)
We are intentionally not using LTO by default in almost every case because it provides little to no performance improement for us and has a _huge_ impact on build times, which in turn results in our CI taking an unreasonably long time to run.
Austin S. Hemmelgarn committed
Oct 19, 2021 at 07:28 UTC
a221b7b2fd6a90189c9badd499caf73ec613d184
1 file changed
+5
netdata.spec.in
+5
@@ -15,6 +15,11 @@ AutoReqProv: yes
15
# error.
16
%global __os_install_post %{nil}
17
18
+# We don’t want LTO as it has a minimal performance impact at runtime
19
+# but a huge impact on build times (we want our CI to not take multiple
20
+# hours to finish).
21
+%global _lto_cflags %nil
22
+
23
# Disable eBPF for architectures other than x86
24
%ifarch x86_64 i386
25
%global _have_ebpf 1