fix(hyperbole): android build
This commit is contained in:
parent
93f68c526b
commit
891b7ad7cf
1 changed files with 6 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue