diff --git a/hyperbole.py b/hyperbole.py index 1755788..4950c2c 100755 --- a/hyperbole.py +++ b/hyperbole.py @@ -267,6 +267,12 @@ def cmd_build(pprof=False, release=False, race=False): plat_ldflags.append(APP_SRC_CMD_PKG + ".appPlatform=" + os_name) plat_ldflags.append("-X") plat_ldflags.append(APP_SRC_CMD_PKG + ".appArch=" + arch) + if os_name == "android": + # github.com/wlynxg/anet uses //go:linkname to reach internal net + # symbols (net.zoneCache), which Go 1.23+ rejects unless the + # linker is told to skip the check. Without this the Android + # build fails with: "link: ... invalid reference to net.zoneCache". + plat_ldflags.append("-checklinkname=0") cmd = [ "go",