public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openssl] rebase_40beta: Fix globally disabled LTO
@ 2026-06-09 12:45
0 siblings, 0 replies; only message in thread
From: @ 2026-06-09 12:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/openssl
Branch : rebase_40beta
Commit : d9b31e9422113ed5aec6d9e3d6ab68bc8b52d5db
Author : Pavol Žáčik <pzacik@redhat.com>
Date : 2025-09-04T16:43:20+02:00
Stats : +8/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/openssl/c/d9b31e9422113ed5aec6d9e3d6ab68bc8b52d5db?branch=rebase_40beta
Log:
Fix globally disabled LTO
Using %define _lto_cflags %{nil} in %check
would zero the LTO flags globally, resulting
in disabled LTO for the entire build instead
of just the tests.
---
diff --git a/openssl.spec b/openssl.spec
index 5f153f5..9b5e799 100644
--- a/openssl.spec
+++ b/openssl.spec
@@ -34,7 +34,7 @@ print(string.sub(hash, 0, 16))
Summary: Utilities from the general purpose cryptography library with TLS implementation
Name: openssl
Version: 3.5.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Epoch: 1
Source0: openssl-%{version}.tar.gz
Source1: fips-hmacify.sh
@@ -307,9 +307,10 @@ export OPENSSL_SYSTEM_CIPHERS_OVERRIDE
#mv providers/fips.so.mac providers/fips.so
%{SOURCE1} providers/fips.so
-# Disable LTO, build tests, and run them
-%define _lto_cflags %{nil}
-make -s %{?_smp_mflags} build_programs
+# Build tests with LTO disabled and run them
+make -s %{?_smp_mflags} build_programs \
+ CFLAGS="%{build_cflags} -fno-lto" \
+ CXXFLAGS="%{build_cxxflags} -fno-lto"
make test HARNESS_JOBS=8
# Add generation of HMAC checksum of the final stripped library
@@ -472,6 +473,9 @@ ln -s /etc/crypto-policies/back-ends/openssl_fips.config $RPM_BUILD_ROOT%{_sysco
%ldconfig_scriptlets libs
%changelog
+* Thu Sep 04 2025 Pavol Žáčik <pzacik@redhat.com> - 1:3.5.1-4
+- Fix globally disabled LTO
+
* Tue Aug 26 2025 Pavol Žáčik <pzacik@redhat.com> - 1:3.5.1-3
- Make openssl speed test signatures without errors
- Build tests in check and without LTO
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-09 12:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 12:45 [rpms/openssl] rebase_40beta: Fix globally disabled LTO
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox