Hello Gwynne, this way we always have -O2 on darwin. Howabout doing the extraction part correct and stop extracting at the first whitespace after -g? Because otherwise you cannot try -O3 nor can you try to get a -O0 build for debugging.
marcus Tuesday, April 1, 2008, 4:37:02 AM, you wrote: > gwynne Tue Apr 1 02:37:02 2008 UTC > Modified files: (Branch: PHP_5_3) > /php-src configure.in > Log: > fix the darwin 9 hack again; add the -O2 back in to avoid performance loss > when not compiling for debug > > http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.579.2.52.2.77.2.13&r2=1.579.2.52.2.77.2.14&diff_format=u > Index: php-src/configure.in > diff -u php-src/configure.in:1.579.2.52.2.77.2.13 > php-src/configure.in:1.579.2.52.2.77.2.14 > --- php-src/configure.in:1.579.2.52.2.77.2.13 Sun Mar 16 21:06:53 2008 > +++ php-src/configure.in Tue Apr 1 02:37:02 2008 > @@ -1,4 +1,4 @@ > -## $Id: configure.in,v 1.579.2.52.2.77.2.13 2008/03/16 21:06:53 helly Exp $ > -*- autoconf -*- > +## $Id: configure.in,v 1.579.2.52.2.77.2.14 2008/04/01 02:37:02 gwynne Exp $ > -*- autoconf -*- > dnl ## Process this file with autoconf to produce a configure script. > > divert(1) > @@ -767,7 +767,7 @@ > else > dnl Finish the Darwin hack > if test "$php_did_darwin9_cheat" -eq 1; then > - CFLAGS=`echo "$CFLAGS" | $SED -e 's/-gstabs//g'` > + CFLAGS=`echo "-O2 $CFLAGS" | /usr/bin/sed -e 's/-gstabs//g'` > fi > PHP_DEBUG=0 > ZEND_DEBUG=no Best regards, Marcus -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php