mirror of
https://github.com/amnezia-vpn/amneziawg-android.git
synced 2026-12-03 18:32:42 +07:00
[PR #108] fix: build libwg-go with the boottime-patched Go toolchain #105
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-android#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/amneziawg-android/pull/108
Author: @Timsonrobl
Created: 10/27/2026
Status: 🔄 Open
Base:
master← Head:fix/libwg-go-boottime-toolchain📝 Commits (1)
357ab80fix: build libwg-go with the boottime-patched Go toolchain📊 Changes
1 file changed (+8 additions, -4 deletions)
View changed files
📝
tunnel/tools/libwg-go/Makefile(+8 -4)📄 Description
Fixes #107
go.mod requires go 1.25.0, but the Makefile prepares and patches 1.24.2. So with
GOTOOLCHAIN=auto, go just downloads a stock 1.25.0, and the runtime patch never ends up in libwg-go.so. Details are in the issue.Makefile-only change:
GO_VERSION1.24.2 → 1.25.0, with hashes from go.devexport GOTOOLCHAIN := local. If go.mod gets ahead ofGO_VERSIONagain, the build fails, rather than quietly using an unpatched toolchain.I tested it with build.yml (
debug_apk) on my fork, then checked which clockruntime.nanotime1uses in the arm64 libwg-go.so:The runtime patch applies to Go 1.25.0 without changes, and libwg-go.so builds for all four ABIs (arm64-v8a, armeabi-v7a, x86, x86_64).
I've also been running the patched runtime on a Galaxy S25 Ultra through several sleep/wake cycles, and the post-wake stall is gone.
@vkamn @NickVs2015 it's a small Makefile fix, but it affects every Android build since July 2025. Happy to adjust anything.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.