Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2019-04-04 16:26:56 +0300
committerSergey Kandaurov <pluknet@nginx.com>2019-04-04 16:26:56 +0300
commitce912de835153ce465b4a192e291ef0b96806baa (patch)
tree40ee1517a846c557a1a4347f0905e8dddcc8e15a
parent7c7d32772d3e83868955ce7fab197ab52ff90bcd (diff)
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.
-rw-r--r--misc/GNUmakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/GNUmakefile b/misc/GNUmakefile
index fc75de502..241cd4af5 100644
--- a/misc/GNUmakefile
+++ b/misc/GNUmakefile
@@ -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