Thursday, August 14, 2014

Adding code snippets on blogger

A quick note on adding code snippets on blogger.
From the variety of tools available, I have found the best for formatting.

Modifying gcc optimizations while building nginx for debugging

Sometimes, during debugging I needed to disable optimizations. It took me a few searches to figure it out. So here is a short summary for anyone else who may face the same issue

Go to nginx/auto/cc/gcc file. Modify the CFLAGS to not include the variable NGX_GCC_OPT
In my (already modified Makefile) it was like this

which I changed to this