Skip to content

Commit

Permalink
Win32: preserving binary compatibility with Windows XP - Vista.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pluknet committed Apr 4, 2019
1 parent 7c7d327 commit ce912de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misc/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce912de

Please sign in to comment.