]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rpm: remove _lto_cflags logic for older distros
authorCasey Bodley <cbodley@redhat.com>
Tue, 19 Aug 2025 13:30:51 +0000 (09:30 -0400)
committerYuri Weinstein <yweinste@redhat.com>
Thu, 2 Oct 2025 17:20:12 +0000 (17:20 +0000)
none of these distros are supported anymore. gcc >= 13.3 should resolve
those lto issues

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 897188f157a8779b7da741601be7fc4849df28ed)
(cherry picked from commit c6440bb47d0872b8641af5e9915e5e61337635a2)

ceph.spec.in

index 08a5b7dc7040f6addabbc7c8f310a14ed7d78e50..9641d7cb53bd832292d6c09d2f3804ad5822cf69 100644 (file)
 %{!?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