[nginx] Win32: added a variable to specify compiler.

Maxim Dounin mdounin at mdounin.ru
Sat Dec 24 16:25:32 UTC 2016


details:   http://hg.nginx.org/nginx/rev/c2c13f1f47fd
branches:  
changeset: 6855:c2c13f1f47fd
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Sat Dec 24 18:01:14 2016 +0300
description:
Win32: added a variable to specify compiler.

This allows to set a different one from command line when needed.
For example, to configure nginx with gcc as a compiler one could
use "make -f misc/GNUmakefile win32 CC=gcc".

diffstat:

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

diffs (20 lines):

diff --git a/misc/GNUmakefile b/misc/GNUmakefile
--- a/misc/GNUmakefile
+++ b/misc/GNUmakefile
@@ -4,6 +4,7 @@ VER =		$(shell grep 'define NGINX_VERSIO
 NGINX =		nginx-$(VER)
 TEMP =		tmp
 
+CC =		cl
 OBJS =		objs.msvc8
 OPENSSL =	openssl-1.0.2j
 ZLIB =		zlib-1.2.8
@@ -47,7 +48,7 @@ RELEASE:
 
 win32:
 	./auto/configure						\
-		--with-cc=cl						\
+		--with-cc=$(CC)						\
 		--builddir=$(OBJS)					\
 		--with-debug						\
 		--prefix= 						\


More information about the nginx-devel mailing list