aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-26 15:00:35 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-27 07:11:42 -0600
commitea4993b196ba65d24196fc3251adff8bfe316121 (patch)
tree7a128f91bd226d59ce749b0e74be3875e7160682
parenttunnel: do not query real interface name (diff)
downloadwireguard-windows-ea4993b196ba65d24196fc3251adff8bfe316121.tar.xz
wireguard-windows-ea4993b196ba65d24196fc3251adff8bfe316121.zip
build: use goproxy when not remastering
-rw-r--r--Makefile2
-rw-r--r--build.bat1
2 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d6fe422b..c622fce8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,6 @@ export CGO_ENABLED := 1
export CGO_CFLAGS := -O3 -Wall -Wno-unused-function -Wno-switch -std=gnu11 -DWINVER=0x0601
export CGO_LDFLAGS := -Wl,--major-os-version=6 -Wl,--minor-os-version=1 -Wl,--major-subsystem-version=6 -Wl,--minor-subsystem-version=1 -Wl,--tsaware
export GOOS := windows
-export GOPROXY := direct
rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))
SOURCE_FILES := $(call rwildcard,,*.go *.c *.h)
@@ -39,6 +38,7 @@ x86/wireguard.exe: resources_386.syso $(SOURCE_FILES)
remaster: export CC := x86_64-w64-mingw32-gcc
remaster: export GOARCH := amd64
+remaster: export GOPROXY := direct
remaster:
rm -f go.sum go.mod
cp go.mod.master go.mod
diff --git a/build.bat b/build.bat
index aa82f584..3361b28b 100644
--- a/build.bat
+++ b/build.bat
@@ -32,7 +32,6 @@ if exist .deps\prepared goto :render
:build
set GOOS=windows
- set GOPROXY=direct
set GOPATH=%BUILDDIR%.deps\gopath
set GOROOT=%BUILDDIR%.deps\go
set CGO_ENABLED=1