Welcome! Log In Create A New Profile

Advanced

[nginx] Win32: preserving binary compatibility with Windows XP - Vista.

Sergey Kandaurov
April 04, 2019 11:36AM
details: https://hg.nginx.org/nginx/rev/7da71a7b141a
branches:
changeset: 7487:7da71a7b141a
user: Sergey Kandaurov <pluknet@nginx.com>
date: Thu Apr 04 16:26:56 2019 +0300
description:
Win32: preserving binary compatibility with Windows XP - Vista.

OpenSSL 1.1.0 and above uses BCrypt if available (Windows 7 or higher).
This results in an unusable binary on older Windows versions, when building
with newer Windows SDK (such as 7.0A). Using CFLAGS to define _WIN32_WINNT
allows to set a desired ABI and make sure the binary works with Windows XP.

To not mix with other potential CFLAGS uses, it is set in GNUmakefile.

diffstat:

misc/GNUmakefile | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 52d3600bc25e -r 7da71a7b141a misc/GNUmakefile
--- a/misc/GNUmakefile Thu Apr 04 16:22:03 2019 +0300
+++ b/misc/GNUmakefile Thu Apr 04 16:26:56 2019 +0300
@@ -82,7 +82,8 @@ win32:
--with-mail \
--with-stream \
--with-openssl=$(OBJS)/lib/$(OPENSSL) \
- --with-openssl-opt="no-asm no-tests" \
+ --with-openssl-opt="no-asm no-tests \
+ CFLAGS=-D_WIN32_WINNT=0x0501" \
--with-http_ssl_module \
--with-mail_ssl_module \
--with-stream_ssl_module
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Win32: preserving binary compatibility with Windows XP - Vista.

Sergey Kandaurov 289 April 04, 2019 11:36AM



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

Online Users

Guests: 158
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