Skip to content

Make link time optimization flags configurable

Evangelos Foutras requested to merge (removed):configurable-lto-flags into master

We want to use -flto=auto in Arch Linux to speed up building, but we can't hardcode it in buildenv/lto.sh because other downstreams might have clang < 13.0.0 which did not recognize -flto=auto as equivalent to -flto=full.

Introducing an LTOFLAGS variable to makepkg.conf seems the way to go.

Edited by Evangelos Foutras

Merge request reports