This is an auto-filed bug because x11-misc/xbatt calls ld directly.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.
If you think it doesn't make sense fix these type of issues, I'd like to point out that won't be possible use a different linker implementation (like llvm-link) by setting the LD variable. So this issue has been reproduced by setting the LD variable to x86_64-pc-linux-gnu-ld and by removing the /usr/bin/ld binary.
Created attachment 642688 [details]
build log and emerge --info
The bug has been closed via the following commit(s):
Author: Ionen Wolkens <email@example.com>
AuthorDate: 2021-04-14 12:30:48 +0000
Commit: Joonas Niilola <firstname.lastname@example.org>
CommitDate: 2021-04-15 06:38:56 +0000
x11-misc/xbatt: fix build with -native-symlinks
Signed-off-by: Ionen Wolkens <email@example.com>
Signed-off-by: Joonas Niilola <firstname.lastname@example.org>
x11-misc/xbatt/xbatt-1.3_rc1.ebuild | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)