Created attachment 222344 [details] patch This patch adds an option for using LTO.
Test compiling the patch.
On my computer 8GB RAM + 4GB swap the system runs out memory while compiling this. What kind of specs are needed?
(In reply to Ronald Klop from comment #2) Well, LTO is known for requiring large amounts of memory, although the specific amount depends on the software used with LTO. In case of MongoDB, I noticed that the linker process uses around 25GB RAM.
Comment on attachment 222344 [details] patch I'm ok with the change. Can't test build it on my machines because of memory usage. If I get a message about a broken build because of this I want to make the option non-default. Otherwise it might be a nice optimization on pre-build pkgs.
Hm, I actually meant for it to be non-default, but it looks like I accidentally sent the patch that made it default. Still, if you agree to that, awesome! FYI, I tested on powerpc64le on 13.0-BETA1.