]> git.kaiwu.me - nginx.git/commitdiff
Win32: avoid using CFLAGS, just add define instead.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 4 Apr 2019 19:56:41 +0000 (22:56 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 4 Apr 2019 19:56:41 +0000 (22:56 +0300)
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.

misc/GNUmakefile

index 241cd4af591466295c8e7aea2e0e8638c3fa349a..2a71ce069604d8f8dcdfae7a41de174ab101fb1a 100644 (file)
@@ -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