[Mesa-dev] switching off -O2 with debugging build

Chad Versace chad.versace at linux.intel.com
Fri Dec 7 09:40:29 PST 2012


On 12/07/2012 01:29 PM, Dmitry at freedesktop.org wrote:
> ./configure --enable-debug seems to leave -O2 omptimization flag
> turned on.
> 
> Is there a quick method to switch it off?

During the ./configure && make && make install process, I set

export CFLAGS="-O0 -g3"
export CXXFLAGS="-O0 -g3"

The last thing that the configure script prints is a summary,
which contains the value of CFLAGS and CXXFLAGS among much else. To verify
that this works for you, examine the summary.





More information about the mesa-dev mailing list