Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #90 from Jigsaw-Code/bemasc-make
Browse files Browse the repository at this point in the history
Ensure GOBIN is used for installing and locating `gobind`
  • Loading branch information
Benjamin M. Schwartz authored Jun 15, 2022
2 parents 19cbd40 + 6697309 commit 1589410
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ IMPORT_PATH=github.com/Jigsaw-Code/outline-go-tun2socks
all: intra android linux apple windows

# Don't strip Android debug symbols so we can upload them to crash reporting tools.
ANDROID_BUILD_CMD=$(GOMOBILE) bind -a -ldflags '-w' -target=android -tags android -work
# Add GOBIN to $PATH so `gomobile` can find `gobind`.
ANDROID_BUILD_CMD=env PATH=$(GOBIN):$(PATH) $(GOMOBILE) bind -a -ldflags '-w' -target=android -tags android -work

intra: $(BUILDDIR)/intra/tun2socks.aar

Expand Down Expand Up @@ -59,7 +60,7 @@ $(WINDOWS_BUILDDIR)/tun2socks.exe: $(XGO)

$(GOMOBILE): go.mod
env GOBIN=$(GOBIN) go install golang.org/x/mobile/cmd/gomobile
$(GOMOBILE) init
env GOBIN=$(GOBIN) $(GOMOBILE) init

$(XGO): go.mod
env GOBIN=$(GOBIN) go install github.com/crazy-max/xgo
Expand Down

0 comments on commit 1589410

Please sign in to comment.