The Zutty build script always appends -flto to CXXFLAGS and LDFLAGS (along with -O3 and -march=native) which breaks the build with the mold linker, as it does not support LTO.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7b5d731d1f75172fd49b838e3b29a51b17b7e5a commit c7b5d731d1f75172fd49b838e3b29a51b17b7e5a Author: Matthew Smith <matt@offtopica.uk> AuthorDate: 2022-01-01 15:11:03 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-01-21 06:33:25 +0000 x11-terms/zutty: add 0.11 - Add a comment on why we don't run the tests. - Remove default CXXFLAGS/LDFLAGS from wscript. Closes: https://bugs.gentoo.org/830405 Signed-off-by: Matthew Smith <matt@offtopica.uk> Signed-off-by: Joonas Niilola <juippis@gentoo.org> x11-terms/zutty/Manifest | 1 + x11-terms/zutty/zutty-0.11-cxxflags.patch | 27 ++++++++++++++++++++ x11-terms/zutty/zutty-0.11.ebuild | 41 +++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+)