Created attachment 221950 [details] patch For some reason, I was unable to build Firefox with LTO on 12.2-RELEASE, but it works on 13.0-ALPHA2 (both amd64). On 12.2-RELEASE, build times out. I did not yet test thunderbird or firefox-esr.
Can we add LTO_DESC to Mk/bsd.options.desc.mk as we're getting more and more ports that uses it? https://svnweb.freebsd.org/ports/head/net-mgmt/netdata/Makefile?revision=559848&view=markup#l79 https://svnweb.freebsd.org/ports/head/multimedia/ffmpeg/Makefile?revision=559263&view=markup#l108 Are at least two I know off the top of my head
If I get approval for adding LTO option here, I'll change options for other ports. On top of my head, wireshark also has (or had) LTO option.
A commit references this bug: Author: pkubaj Date: Wed Feb 10 19:23:51 UTC 2021 New revision: 564901 URL: https://svnweb.freebsd.org/changeset/ports/564901 Log: www/firefox: add LTO option PR: 253036 Approved by: gecko (maintainer timeout) Changes: head/Mk/bsd.gecko.mk head/www/firefox/Makefile.options