mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Packages are only built with LTO if it's explicitly enabled via the lto build flag or if a package enables LTO via configure / cmake options. Enabling LTO via configure / cmake is the preferred way as this gives packages more fine grained control, eg enable parallel LTO linking etc. When doing this packages should respect the LTO_SUPPORT setting so LTO can be disabled globally. To avoid conflicting C/CXX/LDFLAGS no FLAGS are added when the lto build flag is not set. Signed-off-by: Matthias Reichl <hias@horus.com>