Does Fedora's kernel use LTO?

Linux operating systems which offer aggressive optimizations are becoming more and more popular, eg.: CachyOS and now dead Clear Linux.

I found a F33 change proposal which was accepted, switching lot of packages to LTO.

However reading the Fedora kernel.spec I found that LTO is only enabled for clang builds. Why not for GCC (default right now)?

Related question: Link-Time Optimization (LTO) for Rust packages by default in Fedora

1 Like