Created attachment 222735 [details] patch LLD fails to link libreoffice, so ld.bfd needs to be used. Since LLVMgold.so (used for LTO with binutils) is not included in base, LLVM from ports needs to be used.
Comment on attachment 222735 [details] patch LGTM, ship it!
A commit references this bug: Author: pkubaj Date: Tue Feb 23 11:02:21 UTC 2021 New revision: 566388 URL: https://svnweb.freebsd.org/changeset/ports/566388 Log: editors/libreoffice: add LTO option LLD fails to link libreoffice, so ld.bfd needs to be used. Since LLVMgold.so (used for LTO with binutils) is not included in base, LLVM from ports needs to be used. PR: 253777 Approved by: fluffy (maintainer) Changes: head/editors/libreoffice/Makefile