From 60ee61808374db8b939f794362518341a3f85736 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Jan 17 2023 00:58:07 +0000 Subject: Make -flto=thin the default lto flag for clang https://fedoraproject.org/wiki/Changes/LLVM-16 --- diff --git a/macros b/macros index d2a4508..edade66 100644 --- a/macros +++ b/macros @@ -363,7 +363,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}} # Default fortification level. diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index 2cb04db..a50d48c 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -4,7 +4,7 @@ # 2) When making changes, increment the version (in baserelease) by 1. # rpmdev-bumpspec and other tools update the macro below, which is used # in Version: to get the desired effect. -%global baserelease 243 +%global baserelease 244 Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config @@ -221,6 +221,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %doc buildflags.md %changelog +* Mon Jan 16 2023 Tom Stellard - 244-1 +- Make -flto=thin the default lto flag for clang + * Mon Jan 16 2023 Siddhesh Poyarekar - 243-1 - Consolidate the _FORTIFY_SOURCE switches.