diff options
Diffstat (limited to 'tunnel/tools/libwg-go/Makefile')
-rw-r--r-- | tunnel/tools/libwg-go/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tunnel/tools/libwg-go/Makefile b/tunnel/tools/libwg-go/Makefile index 45b67a5c..29d06d6b 100644 --- a/tunnel/tools/libwg-go/Makefile +++ b/tunnel/tools/libwg-go/Makefile @@ -34,6 +34,7 @@ $(DESTDIR)/libwg-go.so: export PATH := $(BUILDDIR)/go-$(DESIRED_GO_VERSION)/bin/ $(DESTDIR)/libwg-go.so: $(BUILDDIR)/go-$(DESIRED_GO_VERSION)/.prepared go.mod api-android.go # go env # go mod edit -replace="gvisor.dev/gvisor@v0.0.0-20200317232300-1cc5a71a0e21=golang.m7n.se/gvisor@v0.0.0-40f5d9cc44305fed7ed64cf1d2e26e4c360d2e0d" -# go mod edit -replace="gvisor.dev/gvisor@v0.0.0-20200317232300-1cc5a71a0e21=golang.m7n.se/gvisor@40f5d9cc44305fed7ed64cf1d2e26e4c360d2e0d" # go mod edit -replace="github.com/insomniacslk/dhcp@v0.0.0=golang.m7n.se/insomniacslk-dhcp@b00f80a5a5d864ad3f72fb0a61eb6b9e26010a12" + go mod edit -replace="gvisor.dev/gvisor@v0.0.0-20200317232300-1cc5a71a0e21=/src/gvisor" + go mod edit -replace="golang.zx2c4.com/wireguard@v0.0.20200121=/src/wireguard-go" go build -tags linux -ldflags="-X golang.zx2c4.com/wireguard/ipc.socketDirectory=/data/data/$(ANDROID_PACKAGE_NAME)/cache/wireguard" -v -trimpath -o "$@" -buildmode c-shared |