Welcome! Log In Create A New Profile

Advanced

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

Piotr Sikora via nginx-devel
February 27, 2024 08:26PM
# HG changeset patch
# User Piotr Sikora <piotr@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@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"
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Piotr Sikora via nginx-devel 224 February 27, 2024 08:26PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 175
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready