diff --git a/Sources/WireGuardKitGo/Makefile b/Sources/WireGuardKitGo/Makefile index 4fda31b..b364889 100644 --- a/Sources/WireGuardKitGo/Makefile +++ b/Sources/WireGuardKitGo/Makefile @@ -25,13 +25,13 @@ GOOS_iphonesimulator := ios build: $(DESTDIR)/libwg-go.a version-header: $(DESTDIR)/wireguard-go-version.h -REAL_GOROOT := $(shell go env GOROOT 2>/dev/null) +REAL_GOROOT := $(shell export PATH="$(PATH):/usr/local/bin:/opt/homebrew/bin"; go env GOROOT 2>/dev/null) export GOROOT := $(BUILDDIR)/goroot $(GOROOT)/.prepared: [ -n "$(REAL_GOROOT)" ] mkdir -p "$(GOROOT)" - chmod -R u+w "$(GOROOT)" rsync -a --delete --exclude=pkg/obj/go-build "$(REAL_GOROOT)/" "$(GOROOT)/" + chmod -R u+w "$(GOROOT)" cat goruntime-*.diff | patch -p1 -f -N -r- -d "$(GOROOT)" touch "$@"