Welcome! Log In Create A New Profile

Advanced

a minor build patch to facilitate debugging

Vladimir Shebordaev
July 30, 2012 02:28PM
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

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

a minor build patch to facilitate debugging

Vladimir Shebordaev 1056 July 30, 2012 02:28PM

Re: a minor build patch to facilitate debugging

Maxim Dounin 470 July 30, 2012 06:18PM

Re: a minor build patch to facilitate debugging

Vladimir Shebordaev 594 July 30, 2012 06:34PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 171
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready