summaryrefslogtreecommitdiff
path: root/platform.in
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2019-08-13 16:26:31 +0300
committerPanu Matilainen <pmatilai@redhat.com>2019-08-14 17:05:59 +0300
commit7faf8eda1358f8a877b9b3d6e1197b814e80b50b (patch)
tree74287d99e5ced2d4bffd4bc6130d963e1358e80a /platform.in
parent655c4c72a3467037abd51aab29f0300e97caf54c (diff)
downloadrpm-7faf8eda1358f8a877b9b3d6e1197b814e80b50b.tar.gz
Drop %_lto_cflags macro afterall
This was only added in commit 2bb7b0cf066c97a9d92eb0bf59618896000cb29d, but turns out that this kind of usage is bad for build reproducability because the system-specific CPU count gets recorded RPMTAG_OPTFLAGS and the resulting binaries too (depending on gcc flags). In addition, gcc upstream has decided to make -flto default to autodetected parallelism. Since -flto can be overridden with by simply appending -fno-lto for the packages that need to disable it, there's no practical need for us to provide such a macro for disabling either.
Diffstat (limited to 'platform.in')
-rw-r--r--platform.in3
1 files changed, 0 insertions, 3 deletions
diff --git a/platform.in b/platform.in
index e1efc42b0..db6d2382f 100644
--- a/platform.in
+++ b/platform.in
@@ -59,9 +59,6 @@
%_smp_mflags -j%{_smp_build_ncpus}
-# Enable LTO optimization with a maximal parallelism
-%_lto_cflags -flto=%{_smp_build_ncpus}
-
#==============================================================================
# ---- Build policy macros.
#