aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/installer/build.bat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-12 09:55:48 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-17 09:44:44 +0200
commit56ba147b51a24298c2ab914f34a7cadc2524b872 (patch)
treee356091c5f324f21655b97ca976667148e8d4ee0 /installer/build.bat
parentinstaller: hardcode %ProgramFiles%\WireGuard install folder (diff)
downloadwireguard-windows-56ba147b51a24298c2ab914f34a7cadc2524b872.tar.xz
wireguard-windows-56ba147b51a24298c2ab914f34a7cadc2524b872.zip
installer: kill leftover processes forcibly
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'installer/build.bat')
-rw-r--r--installer/build.bat4
1 files changed, 2 insertions, 2 deletions
diff --git a/installer/build.bat b/installer/build.bat
index 1f9fa729..b4730e1b 100644
--- a/installer/build.bat
+++ b/installer/build.bat
@@ -57,9 +57,9 @@ 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 -municode -DUNICODE -D_UNICODE -DNDEBUG
+ 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
+ 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