diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-25 01:37:14 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-25 01:37:14 +0200 |
commit | 73429f0643da44e5636acb0e6d6331dacddac7dd (patch) | |
tree | ebfdc674736aa8f1ed7d5501585abddeec0b6be6 | |
parent | winipcfg: SocketAddressToIP was upstreamed (diff) | |
download | wireguard-windows-73429f0643da44e5636acb0e6d6331dacddac7dd.tar.xz wireguard-windows-73429f0643da44e5636acb0e6d6331dacddac7dd.zip |
build: opt in to walk cgo
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | build.bat | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -GOFLAGS := -ldflags="-H windowsgui -s -w" -v +GOFLAGS := -ldflags="-H windowsgui -s -w" -v -tags walk_use_cgo export CGO_ENABLED := 1 export CGO_CFLAGS := -O3 -Wall -Wno-unused-function -Wno-switch -std=gnu11 -DWINVER=0x0601 export GOOS := windows @@ -77,6 +77,6 @@ if exist .deps\prepared goto :render echo [+] Assembling resources %1 windres.exe -i resources.rc -o resources.syso -O coff || exit /b %errorlevel% echo [+] Building program %1 - go build -ldflags="-H windowsgui -s -w" -v -o "%~1\wireguard.exe" || exit /b 1 + go build -ldflags="-H windowsgui -s -w" -tags walk_use_cgo -v -o "%~1\wireguard.exe" || exit /b 1 set PATH=%OLDPATH2% goto :eof |