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

Brian Paul brianp at vmware.com
Fri Dec 7 14:11:58 PST 2012


On 12/07/2012 10:40 AM, Chad Versace wrote:
> 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.

I've mentioned this before, but it would be nice if specifying 
--enabled-debug also turned off -O2.

-Brian



More information about the mesa-dev mailing list