From 5f02c206f499d3b44a78188769e9a64745d7575c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 5 Jul 2019 12:57:03 +0200 Subject: go: use 1.13beta1 for reproducable builds --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5220a93a..ac09c5c9 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ -GOFLAGS := -ldflags="-H windowsgui -s -w" -v -tags walk_use_cgo +GOFLAGS := -ldflags="-H windowsgui -s -w" -v -tags walk_use_cgo -trimpath 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 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) @@ -22,7 +23,7 @@ resources_amd64.syso: $(RESOURCE_FILES) resources_386.syso: $(RESOURCE_FILES) i686-w64-mingw32-windres -i $< -o $@ -O coff -VERSIONCHECK := @[ "$$(go version | cut -d ' ' -f 3)" == go1.12.6 ] +VERSIONCHECK := @[ "$$(go version | cut -d ' ' -f 3)" == go1.13beta1 ] amd64/wireguard.exe: export CC := x86_64-w64-mingw32-gcc amd64/wireguard.exe: export GOARCH := amd64 -- cgit v1.2.3-59-g8ed1b