From: Casey Bodley Date: Tue, 19 Aug 2025 13:30:51 +0000 (-0400) Subject: rpm: remove _lto_cflags logic for older distros X-Git-Tag: testing/wip-jcollin-testing-20251107.050937-tentacle~4^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c3e9469bb9a45bb89d81e313b5e5dfb7f4a859e7;p=ceph-ci.git rpm: remove _lto_cflags logic for older distros none of these distros are supported anymore. gcc >= 13.3 should resolve those lto issues Signed-off-by: Casey Bodley (cherry picked from commit 897188f157a8779b7da741601be7fc4849df28ed) (cherry picked from commit c6440bb47d0872b8641af5e9915e5e61337635a2) --- diff --git a/ceph.spec.in b/ceph.spec.in index 08a5b7dc704..9641d7cb53b 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -154,12 +154,6 @@ %{!?gts_version: %global gts_version 13} %endif -# Disable lto on systems that do not support symver attribute -# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200 for details -%if (0%{?rhel} && 0%{?rhel} < 9) || ( 0%{?suse_version} && 0%{?suse_version} <= 1500 ) -%define _lto_cflags %{nil} -%endif - %if ! 0%{?suse_version} # use multi-threaded xz compression: xz level 7 using ncpus threads %global _source_payload w7T%{_smp_build_ncpus}.xzdio