# HG changeset patch
# User Maxim Dounin <[email protected]>
# Date 1722992209 -10800
# Wed Aug 07 03:56:49 2024 +0300
# Node ID 7c350e5171682e6fb079408c4f3258074d973df6
# Parent 098019656024089ed9d36bb06d89278305893f50
Win32: building with Clang.
diff --git a/auto/os/win32 b/auto/os/win32
--- a/auto/os/win32
+++ b/auto/os/win32
@@ -18,7 +18,7 @@ ngx_binext=".exe"
case "$NGX_CC_NAME" in
- gcc)
+ gcc | clang)
CORE_LIBS="$CORE_LIBS -ladvapi32 -lws2_32"
MAIN_LINK="$MAIN_LINK -Wl,--export-all-symbols"
MAIN_LINK="$MAIN_LINK -Wl,--out-implib=$NGX_OBJS/libnginx.a"