diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-26 22:35:50 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-26 22:37:08 +0200 |
commit | d5a1bf53648a4fa550f5634d60608f4316dbd361 (patch) | |
tree | 8593644856c267e47e67faf49b4aa0dd835fd22f /installer | |
parent | build: tsaware is implicit in modern go (diff) | |
download | wireguard-windows-d5a1bf53648a4fa550f5634d60608f4316dbd361.tar.xz wireguard-windows-d5a1bf53648a4fa550f5634d60608f4316dbd361.zip |
instaler: add tsaware, dep, and high entropy aslr to installer
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'installer')
-rw-r--r-- | installer/build.bat | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/installer/build.bat b/installer/build.bat index 88aea5d3..d669b5f1 100644 --- a/installer/build.bat +++ b/installer/build.bat @@ -35,7 +35,11 @@ if exist .deps\prepared goto :build :build set WIX=%BUILDDIR%.deps\wix\ + set CFLAGS=-O3 -Wall -std=gnu11 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -municode -DUNICODE -D_UNICODE -DNDEBUG + set LDFLAGS=-shared -s -Wl,--kill-at -Wl,--major-os-version=6 -Wl,--minor-os-version=1 -Wl,--major-subsystem-version=6 -Wl,--minor-subsystem-version=1 -Wl,--tsaware -Wl,--dynamicbase -Wl,--nxcompat -Wl,--export-all-symbols + set LDLIBS=-lmsi -lole32 -lshlwapi -lshell32 -luuid call :msi x86 i686 x86 || goto :error + set CGO_LDFLAGS=%CGO_LDFLAGS% -Wl,--high-entropy-va call :msi amd64 x86_64 x64 || goto :error if exist ..\sign.bat call ..\sign.bat if "%SigningCertificate%"=="" goto :success @@ -57,9 +61,6 @@ if exist .deps\prepared goto :build :msi set PATH=%BUILDDIR%..\.deps\%~2-w64-mingw32-native\bin;%PATH% set CC=%~2-w64-mingw32-gcc - set CFLAGS=-O3 -Wall -std=gnu11 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -municode -DUNICODE -D_UNICODE -DNDEBUG - set LDFLAGS=-shared -s -Wl,--kill-at -Wl,--major-os-version=6 -Wl,--minor-os-version=1 -Wl,--major-subsystem-version=6 -Wl,--minor-subsystem-version=1 - set LDLIBS=-lmsi -lole32 -lshlwapi -lshell32 -luuid if not exist "%~1" mkdir "%~1" echo [+] Compiling %1 %CC% %CFLAGS% %LDFLAGS% -o "%~1\customactions.dll" customactions.c %LDLIBS% || exit /b 1 |