@@ -22,10 +22,9 @@ cat << END > $NGX_MAKEFILE
22
22
23
23
CC = $CC
24
24
CFLAGS = $CFLAGS
25
- CPP = g++
26
- CXX = g++
27
- CXXFLAGS = -std=c++11 -Wall
28
- LINK = g++
25
+ CPP = $CPP
26
+ CPPFLAGS = -std=c++11 -Wall
27
+ LINK = $LINK
29
28
30
29
END
31
30
@@ -315,7 +314,7 @@ $ngx_obj: \$(CORE_DEPS) \$(HTTP_DEPS)$ngx_cont$ngx_src
315
314
END
316
315
317
316
fi
318
- done
317
+ done
319
318
320
319
fi
321
320
@@ -345,7 +344,7 @@ $ngx_obj: \$(CORE_DEPS) \$(MAIL_DEPS)$ngx_cont$ngx_src
345
344
$ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
346
345
347
346
END
348
- done
347
+ done
349
348
350
349
fi
351
350
@@ -375,7 +374,7 @@ $ngx_obj: \$(CORE_DEPS) \$(STREAM_DEPS)$ngx_cont$ngx_src
375
374
$ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
376
375
377
376
END
378
- done
377
+ done
379
378
380
379
fi
381
380
@@ -401,7 +400,7 @@ $ngx_obj: \$(CORE_DEPS) $ngx_cont$ngx_src
401
400
$ngx_cc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
402
401
403
402
END
404
- done
403
+ done
405
404
406
405
fi
407
406
410
409
411
410
if test -n "$NGX_ADDON_SRCS"; then
412
411
413
- ngx_cc="\$(CPP) $ngx_compile_opt -std=c++11 -g -O0 \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)"
414
- ngx_cxx="\$(CXX) $ngx_compile_opt \$(CXXFLAGS) $ngx_use_pch ddons sources\$(ALL_INCS)"
415
-
412
+ ngx_cc="\$(CC) $ngx_compile_opt \$(CFLAGS) $ngx_use_pch \$(ALL_INCS)"
413
+ ngx_cpp="\$(CPP) $ngx_compile_opt \$(CPPFLAGS) $ngx_use_pch \$(ALL_INCS)"
416
414
for ngx_src in $NGX_ADDON_SRCS
417
415
do
418
416
ngx_obj="addon/`basename \`dirname $ngx_src\``"
@@ -431,7 +429,7 @@ if test -n "$NGX_ADDON_SRCS"; then
431
429
ext=`echo ${ngx_src} | cut -d . -f 2`
432
430
ngx_gcc=$ngx_cc
433
431
if [ $ext = "cpp" ]; then
434
- ngx_gcc=$ngc_cxx
432
+ ngx_gcc=$ngx_cpp
435
433
fi
436
434
437
435
cat << END >> $NGX_MAKEFILE
@@ -440,7 +438,7 @@ $ngx_obj: \$(ADDON_DEPS)$ngx_cont$ngx_src
440
438
$ngx_gcc$ngx_tab$ngx_objout$ngx_obj$ngx_tab$ngx_src$NGX_AUX
441
439
442
440
END
443
- done
441
+ done
444
442
445
443
fi
446
444
511
509
for ngx_module in $DYNAMIC_MODULES
512
510
do
513
511
eval ngx_module_srcs="\$${ngx_module}_SRCS"
512
+ eval ngx_module_shrd="\$${ngx_module}_SHRD"
514
513
eval eval ngx_module_libs="\\\"\$${ngx_module}_LIBS\\\""
515
514
516
515
eval ngx_module_modules="\$${ngx_module}_MODULES"
576
575
| sed -e "s/\(.*\.\)c/\1$ngx_objext/"`
577
576
578
577
ngx_module_objs=
579
- for ngx_src in $ngx_module_srcs
578
+ for ngx_src in $ngx_module_srcs $ngx_module_shrd
580
579
do
581
580
case "$ngx_src" in
582
581
src/*)
0 commit comments