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-vshankar-testing-20250829.190601-debug~17^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=897188f157a8779b7da741601be7fc4849df28ed;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 --- diff --git a/ceph.spec.in b/ceph.spec.in index 14a58028773..b19a829d04a 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