Make -flto=thin the default lto flag for clang
https://fedoraproject.org/wiki/Changes/LLVM-16
This commit is contained in:
parent
1b98c06642
commit
60ee618083
2
macros
2
macros
@ -363,7 +363,7 @@ print(result)
|
|||||||
# way we can detect installing an unusable .o/.a file. This is on the TODO
|
# way we can detect installing an unusable .o/.a file. This is on the TODO
|
||||||
# list for F34.
|
# list for F34.
|
||||||
%_gcc_lto_cflags -flto=auto -ffat-lto-objects
|
%_gcc_lto_cflags -flto=auto -ffat-lto-objects
|
||||||
%_clang_lto_cflags -flto
|
%_clang_lto_cflags -flto=thin
|
||||||
%_lto_cflags %{expand:%%{_%{toolchain}_lto_cflags}}
|
%_lto_cflags %{expand:%%{_%{toolchain}_lto_cflags}}
|
||||||
|
|
||||||
# Default fortification level.
|
# Default fortification level.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# 2) When making changes, increment the version (in baserelease) by 1.
|
# 2) When making changes, increment the version (in baserelease) by 1.
|
||||||
# rpmdev-bumpspec and other tools update the macro below, which is used
|
# rpmdev-bumpspec and other tools update the macro below, which is used
|
||||||
# in Version: to get the desired effect.
|
# in Version: to get the desired effect.
|
||||||
%global baserelease 243
|
%global baserelease 244
|
||||||
|
|
||||||
Summary: Red Hat specific rpm configuration files
|
Summary: Red Hat specific rpm configuration files
|
||||||
Name: redhat-rpm-config
|
Name: redhat-rpm-config
|
||||||
@ -221,6 +221,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua
|
|||||||
%doc buildflags.md
|
%doc buildflags.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 16 2023 Tom Stellard <tstellar@redhat.com> - 244-1
|
||||||
|
- Make -flto=thin the default lto flag for clang
|
||||||
|
|
||||||
* Mon Jan 16 2023 Siddhesh Poyarekar <siddhesh@redhat.com> - 243-1
|
* Mon Jan 16 2023 Siddhesh Poyarekar <siddhesh@redhat.com> - 243-1
|
||||||
- Consolidate the _FORTIFY_SOURCE switches.
|
- Consolidate the _FORTIFY_SOURCE switches.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user