When debugging it is bad to optimize the compiled product.
The <programname>.full output file contains the symbols, but it seems optimized
This means not all variables are accessible to the debugger... "value optimized out"
What is the correct way to set cflag -O0 in the makefile for just that program?
(I do not want to modify make.conf if possible)
The <programname>.full output file contains the symbols, but it seems optimized

This means not all variables are accessible to the debugger... "value optimized out"

What is the correct way to set cflag -O0 in the makefile for just that program?
(I do not want to modify make.conf if possible)