getsolus / ypkg

Modern, declarative, structured build format
https://getsol.us
GNU General Public License v3.0
22 stars 11 forks source link

Warn if building with LTO but static files are present in the final package #33

Open joebonrichie opened 2 years ago

joebonrichie commented 2 years ago

When building with LTO -ffat-lto-objects needs to be added to C/CXX Flags otherwise the static files contain only non-portable and very broken static files.

Fat LTO objects do increase the final size and increase build time so the packager will need to make a tradeoff of size versus performance uplift from LTO.

joebonrichie commented 10 months ago

https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/brp-llvm-compile-lto-elf