Configure: allow cross-compiling to Windows using Clang.

Signed-off-by: Piotr Sikora <piotr@aviatrix.com>
This commit is contained in:
Piotr Sikora 2024-02-26 20:00:48 +00:00
parent b595a68df9
commit e3207a17f0

View File

@ -18,7 +18,7 @@ ngx_binext=".exe"
case "$NGX_CC_NAME" in case "$NGX_CC_NAME" in
gcc) clang | gcc)
CORE_LIBS="$CORE_LIBS -ladvapi32 -lws2_32" CORE_LIBS="$CORE_LIBS -ladvapi32 -lws2_32"
MAIN_LINK="$MAIN_LINK -Wl,--export-all-symbols" MAIN_LINK="$MAIN_LINK -Wl,--export-all-symbols"
MAIN_LINK="$MAIN_LINK -Wl,--out-implib=$NGX_OBJS/libnginx.a" MAIN_LINK="$MAIN_LINK -Wl,--out-implib=$NGX_OBJS/libnginx.a"