]> git.kaiwu.me - nginx.git/commitdiff
Win32: added a variable to specify compiler.
authorMaxim Dounin <mdounin@mdounin.ru>
Sat, 24 Dec 2016 15:01:14 +0000 (18:01 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Sat, 24 Dec 2016 15:01:14 +0000 (18:01 +0300)
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".

misc/GNUmakefile

index 9ab419306476b3cbd920bac6e51cdb54ada227da..064fac1bd34ca049519c70651712b11e2251b80d 100644 (file)
@@ -4,6 +4,7 @@ VER =           $(shell grep 'define NGINX_VERSION' src/core/nginx.h    \
 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=                                               \