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".
This commit is contained in:
Maxim Dounin 2016-12-24 18:01:14 +03:00
parent c2d3d82ccb
commit a4c7e7b1db

View File

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