Build using c-archive instead

This commit is contained in:
Jason A. Donenfeld 2018-06-12 05:19:21 +02:00
parent 96814e3dea
commit 41fbe780c2
1 changed files with 2 additions and 2 deletions

View File

@ -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 . -name '*.go' -type l -delete
find . -type d -empty -delete find . -type d -empty -delete
mkdir -p $(subst ../wireguard-go/,./src/git.zx2c4.com/wireguard-go/,$(dir $(FILES))) 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 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 @rm -f libwg-go.h
example: example.c libwg-go.so example: example.c libwg-go.so