[nginx] Configure: allow cross-compiling to Windows using Clang.

Sergey Kandaurov pluknet at nginx.com
Wed Mar 27 17:46:52 UTC 2024


details:   https://hg.nginx.org/nginx/rev/99e7050ac886
branches:  
changeset: 9235:99e7050ac886
user:      Piotr Sikora <piotr at aviatrix.com>
date:      Mon Feb 26 20:00:48 2024 +0000
description:
Configure: allow cross-compiling to Windows using Clang.

Signed-off-by: Piotr Sikora <piotr at aviatrix.com>

diffstat:

 auto/os/win32 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c2e753d214b0 -r 99e7050ac886 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 @@ ngx_binext=".exe"
 
 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