From 9363d6bdbfc0ebd4271817e2d982963e05a34c5a Mon Sep 17 00:00:00 2001 From: zarazaex69 Date: Mon, 13 Apr 2026 01:34:36 +0300 Subject: [PATCH] chore(magefile): add android-specific linker flag configuration --- magefile.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/magefile.go b/magefile.go index c0eaec0..6870a44 100644 --- a/magefile.go +++ b/magefile.go @@ -129,9 +129,14 @@ func buildBinary(name, pkg, os_, arch string) error { "CGO_ENABLED": "0", } + flags := ldflags + if os_ == "android" { + flags += " -checklinkname=0" + } + return sh.RunWithV(env, goexe, "build", "-trimpath", - "-ldflags", ldflags, + "-ldflags", flags, "-o", out, pkg, )