public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/openssl] rebase_40beta: Fix globally disabled LTO
Date: Tue, 09 Jun 2026 12:45:35 GMT [thread overview]
Message-ID: <178100913579.1.15573691906910728505.rpms-openssl-d9b31e942211@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-09 12:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178100913579.1.15573691906910728505.rpms-openssl-d9b31e942211@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox