Re: cvs: php-src(PHP_5_3) / configure.in

From: Date: Tue, 01 Apr 2008 20:52:38 +0000
Subject: Re: cvs: php-src(PHP_5_3) / configure.in
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-36758@lists.php.net to get a copy of this message
On Apr 1, 2008, at 4:45 PM, Johannes Schlüter wrote:
-O2 is prepended to CFLAGS; with GCC the *last* -O option specified takes precedence. Anything specified by the user will thus override the default -O2. I admit this isn't the cleanest possible solution, but it works, and I don't understand autoconf well enough to handle it better.
If you do --enable-debug you usually get -O0 instead of -O2 so the compiler does no optimizations which make problems with debugging....
The fix only prepends -O2 in the non-debug case; in the debug case -O0 is prepended explicitly already. -- Gwynne, Daughter of the Code "This whole world is an asylum for the incurable."

« previous php.internals (#36758) next »