aboutsummaryrefslogtreecommitdiffstats
path: root/wireguard-go-bridge
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-06-12 05:19:21 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-12 05:19:21 +0200
commit2ec6a900444f30bea08aa0bf8ac4be2db7ae4e58 (patch)
treec674b657c04a01c35576045d28688b984b91f8d7 /wireguard-go-bridge
parentFirst stab at Go bridge (diff)
downloadwireguard-apple-2ec6a900444f30bea08aa0bf8ac4be2db7ae4e58.tar.xz
wireguard-apple-2ec6a900444f30bea08aa0bf8ac4be2db7ae4e58.zip
Build using c-archive instead
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'wireguard-go-bridge')
-rw-r--r--wireguard-go-bridge/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/wireguard-go-bridge/Makefile b/wireguard-go-bridge/Makefile
index 90dc7ac1..7795bb61 100644
--- a/wireguard-go-bridge/Makefile
+++ b/wireguard-go-bridge/Makefile
@@ -18,9 +18,9 @@ libwg-go.so: $(FILES) src/git.zx2c4.com/wireguard-go/api-ios.go src/git.zx2c4.co
find . -name '*.go' -type l -delete
find . -type d -empty -delete
mkdir -p $(subst ../wireguard-go/,./src/git.zx2c4.com/wireguard-go/,$(dir $(FILES)))
- $(foreach FILE,$(FILES),ln -sf $(abspath $(FILE)) $(subst ../wireguard-go/,./src/git.zx2c4.com/wireguard-go/,$(dir $(FILE)))$(file $(FILE));)
+ $(foreach FILE,$(FILES),ln -sf $(abspath $(FILE)) $(subst ../wireguard-go/,./src/git.zx2c4.com/wireguard-go/,$(dir $(FILE)))$(notdir $(FILE));)
GOPATH=$(PWD) go get -v -d git.zx2c4.com/wireguard-go
- GOPATH=$(PWD) go build -tags ios -v -o libwg-go.so -buildmode c-shared git.zx2c4.com/wireguard-go
+ GOPATH=$(PWD) go build -tags ios -v -o libwg-go.so -buildmode c-archive git.zx2c4.com/wireguard-go
@rm -f libwg-go.h
example: example.c libwg-go.so