From 2f73a38a2fc43d057d5ba224efea804059bb2d9d Mon Sep 17 00:00:00 2001 From: Mxmilu666 Date: Sun, 21 Jun 2026 14:10:51 +0800 Subject: [PATCH] fix(build): add linkname check for Android builds --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bac5601a..7d949d60 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ export PATH := $(PATH):`go env GOPATH`/bin export GO111MODULE=on -LDFLAGS := -s -w +# -checklinkname=0: required since Go 1.23+ for github.com/wlynxg/anet (pion dep), +# which uses //go:linkname to reference net.zoneCache on android targets. +LDFLAGS := -s -w -checklinkname=0 NOWEB_TAG = $(shell [ ! -d web/frps/dist ] || [ ! -d web/frpc/dist ] && echo ',noweb') FRP_COMPAT_BASELINE_COUNT ?= 8 FRP_COMPAT_FLOOR_VERSION ?= 0.61.0