aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
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
commitb422029c509e53184417a81bae4e739ef7fe3701 (patch)
tree7a128f91bd226d59ce749b0e74be3875e7160682 /Makefile
parenttunnel: do not query real interface name (diff)
downloadwireguard-windows-b422029c509e53184417a81bae4e739ef7fe3701.tar.xz
wireguard-windows-b422029c509e53184417a81bae4e739ef7fe3701.zip
build: use goproxy when not remastering
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 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