aboutsummaryrefslogtreecommitdiffstats
path: root/wireguard-go-bridge
diff options
context:
space:
mode:
authorJeroen Leenarts <jeroen.leenarts@gmail.com>2018-09-26 20:34:09 +0200
committerJeroen Leenarts <jeroen.leenarts@gmail.com>2018-09-26 20:34:09 +0200
commit5c853efed819059766201947e146746c0b65380a (patch)
treef05a4d3dad0ec4c74b23eff004078b74e2ec3818 /wireguard-go-bridge
parentDeal with zero or empty input better. (diff)
downloadwireguard-apple-5c853efed819059766201947e146746c0b65380a.tar.xz
wireguard-apple-5c853efed819059766201947e146746c0b65380a.zip
Xcode build wireguard go bridge.
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 95cdfecc..9cc98c73 100644
--- a/wireguard-go-bridge/Makefile
+++ b/wireguard-go-bridge/Makefile
@@ -24,7 +24,7 @@ src/.prepared: $(FILES) src/git.zx2c4.com/wireguard-go/api-ios.go src/git.zx2c4.
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)))$(notdir $(FILE));)
- GOPATH=$(PWD) go get -v -d git.zx2c4.com/wireguard-go
+ GOPATH=$(CURDIR) go get -v -d git.zx2c4.com/wireguard-go
touch $@
define libwg-go-a
@@ -33,7 +33,7 @@ libwg-go-$(1).a: $(FILES) src/git.zx2c4.com/wireguard-go/api-ios.go src/git.zx2c
CGO_CFLAGS="$(CGO_FLAGS_$(1))" \
CGO_LDFLAGS="$(CGO_FLAGS_$(1))" \
GOARCH=$(GOARCH_$(1)) \
- GOPATH=$(PWD) \
+ GOPATH=$(CURDIR) \
go build -tags ios -v -o libwg-go-$(1).a -buildmode c-archive git.zx2c4.com/wireguard-go
@rm -f libwg-go-$(1).h
endef