summaryrefslogtreecommitdiffhomepage
path: root/tunnel/tools/libwg-go/Makefile
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-04-10 00:04:04 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-03-17 22:15:05 +0100
commit553ec49d11eb7ad727b0409982a2285e86f4917d (patch)
treeda69e483c45ab936834fb0975a99c1e2c281b322 /tunnel/tools/libwg-go/Makefile
parent0132d995bfed422d2226ad06f2d2b207dce99408 (diff)
m7n: local build modifications
Diffstat (limited to 'tunnel/tools/libwg-go/Makefile')
-rw-r--r--tunnel/tools/libwg-go/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/tunnel/tools/libwg-go/Makefile b/tunnel/tools/libwg-go/Makefile
index 66470864..19e485cf 100644
--- a/tunnel/tools/libwg-go/Makefile
+++ b/tunnel/tools/libwg-go/Makefile
@@ -31,5 +31,6 @@ $(BUILDDIR)/go-$(DESIRED_GO_VERSION)/.prepared:
touch "$@"
$(DESTDIR)/libwg-go.so: export PATH := $(BUILDDIR)/go-$(DESIRED_GO_VERSION)/bin/:$(PATH)
-$(DESTDIR)/libwg-go.so: $(BUILDDIR)/go-$(DESIRED_GO_VERSION)/.prepared go.mod
+$(DESTDIR)/libwg-go.so: $(BUILDDIR)/go-$(DESIRED_GO_VERSION)/.prepared go.mod api-android.go
+# go env
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