From 891b7ad7cf31c1c379161a9775855a01cd1b7e09 Mon Sep 17 00:00:00 2001 From: Toby Date: Fri, 8 May 2026 16:26:15 -0700 Subject: [PATCH] fix(hyperbole): android build --- hyperbole.py | 6 ++++++ 1 file changed, 6 insertions(+) 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",