Welcome! Log In Create A New Profile

Advanced

[nginx] Win32: avoid using CFLAGS, just add define instead.

Maxim Dounin
April 04, 2019 05:30PM
details: https://hg.nginx.org/nginx/rev/af8abe105348
branches:
changeset: 7489:af8abe105348
user: Maxim Dounin <mdounin@mdounin.ru>
date: Thu Apr 04 22:56:41 2019 +0300
description:
Win32: avoid using CFLAGS, just add define instead.

With CFLAGS set as in 7da71a7b141a, OpenSSL compilation drops various
non-important compiler options. To avoid this, a define is added
instead - OpenSSL is smart enough to recognize -D... in Configure
arguments.

diffstat:

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

diffs (13 lines):

diff --git a/misc/GNUmakefile b/misc/GNUmakefile
--- a/misc/GNUmakefile
+++ b/misc/GNUmakefile
@@ -82,8 +82,7 @@ win32:
--with-mail \
--with-stream \
--with-openssl=$(OBJS)/lib/$(OPENSSL) \
- --with-openssl-opt="no-asm no-tests \
- CFLAGS=-D_WIN32_WINNT=0x0501" \
+ --with-openssl-opt="no-asm no-tests -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: avoid using CFLAGS, just add define instead.

Maxim Dounin 327 April 04, 2019 05:30PM



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

Online Users

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