fix(hyperbole): android build

This commit is contained in:
Toby 2026-05-08 16:26:15 -07:00
parent 93f68c526b
commit 891b7ad7cf

View file

@ -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",