fix: more nix issues
This commit is contained in:
@@ -25,13 +25,13 @@ GOOS_iphonesimulator := ios
|
|||||||
build: $(DESTDIR)/libwg-go.a
|
build: $(DESTDIR)/libwg-go.a
|
||||||
version-header: $(DESTDIR)/wireguard-go-version.h
|
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
|
export GOROOT := $(BUILDDIR)/goroot
|
||||||
$(GOROOT)/.prepared:
|
$(GOROOT)/.prepared:
|
||||||
[ -n "$(REAL_GOROOT)" ]
|
[ -n "$(REAL_GOROOT)" ]
|
||||||
mkdir -p "$(GOROOT)"
|
mkdir -p "$(GOROOT)"
|
||||||
chmod -R u+w "$(GOROOT)"
|
|
||||||
rsync -a --delete --exclude=pkg/obj/go-build "$(REAL_GOROOT)/" "$(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)"
|
cat goruntime-*.diff | patch -p1 -f -N -r- -d "$(GOROOT)"
|
||||||
touch "$@"
|
touch "$@"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user