a minor build patch to facilitate debugging

Vladimir Shebordaev vshebordaev at mail.ru
Mon Jul 30 18:26:27 UTC 2012


Hi,

I think it would be nice to disable optimitazions and enable full
debugging options when NGX_DEBUG is set

diff -Naur rev4754/auto/cc/gcc ticket55/auto/cc/gcc
--- rev4754/auto/cc/gcc 2012-07-16 23:15:16.733977245 +0400
+++ ticket55/auto/cc/gcc        2012-07-23 08:50:14.420222679 +0400
@@ -50,7 +50,12 @@

 #NGX_GCC_OPT="-O2"
 #NGX_GCC_OPT="-Os"
+if [ -n "$NGX_DEBUG" ]; then
+NGX_GCC_OPT="-ggdb3"
+else
 NGX_GCC_OPT="-O"
+fi
+

 #CFLAGS="$CFLAGS -fomit-frame-pointer"
--
Regards,
Vladimir



More information about the nginx-devel mailing list