[mapserver-commits] r9123 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Sun Jun 28 05:46:18 EDT 2009
Author: tbonfort
Date: 2009-06-28 05:46:17 -0400 (Sun, 28 Jun 2009)
New Revision: 9123
Modified:
trunk/mapserver/configure
trunk/mapserver/configure.in
Log:
remove optimization flags if --enable-debug was specified
Modified: trunk/mapserver/configure
===================================================================
--- trunk/mapserver/configure 2009-06-26 19:53:42 UTC (rev 9122)
+++ trunk/mapserver/configure 2009-06-28 09:46:17 UTC (rev 9123)
@@ -13131,6 +13131,8 @@
if test "$enable_debug" = "yes" ; then
+ CXXFLAGS=`echo "$CXXFLAGS " | sed 's/-O[123] / /'`
+ CFLAGS=`echo "$CFLAGS " | sed 's/-O[123] / /'`
REPORT_ENABLE_DEBUG="-g "
{ $as_echo "$as_me:$LINENO: result: Enabling debug features: -g in CFLAGS." >&5
Modified: trunk/mapserver/configure.in
===================================================================
--- trunk/mapserver/configure.in 2009-06-26 19:53:42 UTC (rev 9122)
+++ trunk/mapserver/configure.in 2009-06-28 09:46:17 UTC (rev 9123)
@@ -2352,6 +2352,9 @@
--disable-debug Do not include "-g" in CFLAGS (the default).],,)
if test "$enable_debug" = "yes" ; then
+ dnl remove optimization flags
+ CXXFLAGS=`echo "$CXXFLAGS " | sed 's/-O[[123]] / /'`
+ CFLAGS=`echo "$CFLAGS " | sed 's/-O[[123]] / /'`
REPORT_ENABLE_DEBUG="-g "
AC_MSG_RESULT([ Enabling debug features: -g in CFLAGS.])
More information about the mapserver-commits
mailing list