]> git.kaiwu.me - njs.git/commitdiff
nJS should be built by the same compiler as nginx.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 23 Sep 2015 13:26:41 +0000 (16:26 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 23 Sep 2015 13:26:41 +0000 (16:26 +0300)
nginx/config.make

index f252ca47ccde7aafd33ad28df1de7a413860a35c..a9d5e908a768b888f16c01702ab686f998e007d3 100644 (file)
@@ -3,7 +3,7 @@ cat << END                                            >> $NGX_MAKEFILE
 $ngx_addon_dir/../build/libnjs.a:
        cd $ngx_addon_dir/.. \\
        && if [ -f nxt/Makefile.conf ]; then \$(MAKE) clean; fi \\
-       && CFLAGS="\$(CFLAGS)" ./configure \\
+       && CFLAGS="\$(CFLAGS)" CC="\$(CC)" ./configure \\
        && \$(MAKE)
 
 END