From d47824307dce290232d1e5e90f29ccb85d969b5d Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Wed, 8 Nov 2023 17:01:55 +0300 Subject: [PATCH] import redhat-rpm-config-201-1.el9 --- SOURCES/macros | 2 +- SPECS/redhat-rpm-config.spec | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/SOURCES/macros b/SOURCES/macros index 74e9bf3..87698da 100644 --- a/SOURCES/macros +++ b/SOURCES/macros @@ -328,7 +328,7 @@ print(result) # way we can detect installing an unusable .o/.a file. This is on the TODO # list for F34. %_gcc_lto_cflags -flto=auto -ffat-lto-objects -%_clang_lto_cflags -flto +%_clang_lto_cflags -flto=thin %_lto_cflags %{expand:%%{_%{toolchain}_lto_cflags}} %_general_options -O2 %{?_lto_cflags} -fexceptions -g -grecord-gcc-switches -pipe diff --git a/SPECS/redhat-rpm-config.spec b/SPECS/redhat-rpm-config.spec index 51bd318..6223684 100644 --- a/SPECS/redhat-rpm-config.spec +++ b/SPECS/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 199 +Version: 201 Release: 1%{?dist} # No version specified. License: GPL+ @@ -127,6 +127,9 @@ Requires: %{_bindir}/grep Requires: %{_bindir}/sed Requires: %{_bindir}/xargs +# for brp-llvm-compile-lto-elf +Requires: (llvm if clang) + # -fstack-clash-protection and -fcf-protection require GCC 8. Conflicts: gcc < 8.0.1-0.22 @@ -250,7 +253,15 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %doc buildflags.md %changelog -* Wed Mar 15 2023 MSVSphere Packaging Team - 196-1 +* Mon May 08 2023 Nikita Popov - 201-1 +- Add llvm dependency if clang toolchain used +- Resolves: rhbz#2193406 + +* Wed Apr 19 2023 Nikita Popov - 200-1 +- Change clang LTO default to ThinLTO +- Resolves: rhbz#2178788 + +* Wed Mar 15 2023 MSVSphere Packaging Team - 199-1 - Rebuilt for MSVSphere 9.1. * Mon Feb 13 2023 Miro HronĨok - 199-1