[PATCH] Configure: allow cross-compiling to Windows using Clang
Piotr Sikora
piotr at aviatrix.com
Wed Feb 28 01:25:23 UTC 2024
# HG changeset patch
# User Piotr Sikora <piotr at aviatrix.com>
# Date 1708977648 0
# Mon Feb 26 20:00:48 2024 +0000
# Branch patch019
# Node ID 77eab4d83413b053d9681611d243335a95ee5567
# Parent ea1ab31c166c52372b40429a1cccece9ec9e003b
Configure: allow cross-compiling to Windows using Clang.
Signed-off-by: Piotr Sikora <piotr at aviatrix.com>
diff -r ea1ab31c166c -r 77eab4d83413 auto/os/win32
--- a/auto/os/win32 Mon Feb 26 20:00:46 2024 +0000
+++ b/auto/os/win32 Mon Feb 26 20:00:48 2024 +0000
@@ -18,7 +18,7 @@
case "$NGX_CC_NAME" in
- gcc)
+ clang | gcc)
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"
More information about the nginx-devel
mailing list