Re: Does Anyone Compile Aspell with -DNDEBUG?

Kevin Atkinson <[email protected]> Wed, 4 Jun 2008 01:32:08 -0600 (MDT)
Newsgroups gmane.comp.gnu.aspell.devel
Message-ID <[email protected]>
On Wed, 4 Jun 2008, Jose Da Silva wrote:

> This DNDEBUG problem is really between -g and -DNDEBUG
> so you meant CXX='-g -O2' for debug mode and CXX='-O2' for release mode.

Debugging is very difficult with any optimization turned on.  With inline 
functions it is next to useless.  So I meant '-g' for debug mode and 
'-O2' for release mode.

For traditional C programs (with out a lot of inlining) '-O2 -g' is 
somewhat useful which is why automake defaults to it, but for C++ it is 
next to useless.