tony2001                Mon Sep 25 11:05:49 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src    configure.in 
  Log:
  MFH: change CXXFLAGS along with CFLAGS as there might be C++ code
  
  
http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.579.2.52.2.18&r2=1.579.2.52.2.19&diff_format=u
Index: php-src/configure.in
diff -u php-src/configure.in:1.579.2.52.2.18 
php-src/configure.in:1.579.2.52.2.19
--- php-src/configure.in:1.579.2.52.2.18        Thu Sep 14 18:04:40 2006
+++ php-src/configure.in        Mon Sep 25 11:05:49 2006
@@ -1,4 +1,4 @@
- ## $Id: configure.in,v 1.579.2.52.2.18 2006/09/14 18:04:40 iliaa Exp $ -*- 
autoconf -*-
+ ## $Id: configure.in,v 1.579.2.52.2.19 2006/09/25 11:05:49 tony2001 Exp $ -*- 
autoconf -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -665,10 +665,12 @@
   dnl Remove all optimization flags from CFLAGS
   changequote({,})
   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
+  CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9]*//g'`
   changequote([,])
 
   dnl Add the special gcc flags
   CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
+  CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
 fi
 
 PHP_ARG_ENABLE(debug, whether to include debugging symbols,
@@ -679,8 +681,10 @@
   ZEND_DEBUG=yes
   changequote({,})
   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
+  CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9]*//g'`
   changequote([,])
   CFLAGS="$CFLAGS -O0"
+  CXXFLAGS="$CXXFLAGS -O0"
 else
   PHP_DEBUG=0
   ZEND_DEBUG=no

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to