ncmpcpp 0.9.2 checks for LTO support at configure time and applies it automatically when available. This failed on my ARM system but it shouldn't do this anyway. There is a configure flag so you can pass --without-lto but I don't know whether giving this and simply having -flto in your flags when you do want it would be sufficient.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=275b749785420ef105c58483d38de49272eedf6d commit 275b749785420ef105c58483d38de49272eedf6d Author: Mikle Kolyada <zlogene@gentoo.org> AuthorDate: 2021-05-17 06:50:13 +0000 Commit: Mikle Kolyada <zlogene@gentoo.org> CommitDate: 2021-05-17 06:53:24 +0000 media-sound/ncmpcpp: get rid of lto automagic Closes: https://bugs.gentoo.org/769620 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> media-sound/ncmpcpp/metadata.xml | 1 + media-sound/ncmpcpp/ncmpcpp-0.9.2.ebuild | 7 ++++++- media-sound/ncmpcpp/ncmpcpp-9999.ebuild | 8 ++++++-- 3 files changed, 13 insertions(+), 3 deletions(-)