yggdrasil-go
yggdrasil-go copied to clipboard
Fix Android build with Go 1.23.0 or later
The github.com/wlynxg/anet
library depends on the //go:linkname
linker feature [1]. However, since Go 1.23.0, the usage of //go:linkname
has been restricted [2]. And now it's necessary to explicitly specify -checklinkname=0
linker flag to use it.
[1] https://github.com/wlynxg/anet/blob/main/README.md#how-to-build-with-go-1230-or-later [2] https://tip.golang.org/doc/go1.23#linker
Resolves: #1165