[svn] GnuPG - r4142 - trunk
svn author dshaw
cvs at cvs.gnupg.org
Tue May 23 17:32:58 CEST 2006
Author: dshaw
Date: 2006-05-23 17:32:57 +0200 (Tue, 23 May 2006)
New Revision: 4142
Modified:
trunk/ChangeLog
trunk/configure.ac
Log:
* configure.ac: Add --disable-optimization. This is handy for debugging
so the compiler doesn't rearrange things and eliminate variables.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-05-23 03:58:53 UTC (rev 4141)
+++ trunk/ChangeLog 2006-05-23 15:32:57 UTC (rev 4142)
@@ -1,3 +1,9 @@
+2006-05-23 David Shaw <dshaw at jabberwocky.com>
+
+ * configure.ac: Add --disable-optimization. This is handy for
+ debugging so the compiler doesn't rearrange things and eliminate
+ variables.
+
2006-05-22 Marcus Brinkmann <marcus at g10code.de>
* configure.ac: Remove check for noexecstack and invoke
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2006-05-23 03:58:53 UTC (rev 4141)
+++ trunk/configure.ac 2006-05-23 15:32:57 UTC (rev 4142)
@@ -1264,6 +1264,15 @@
CFLAGS="$CFLAGS -Wall"
fi
+ # This is handy for debugging so the compiler doesn't rearrange
+ # things and eliminate variables.
+ AC_ARG_ENABLE(optimization,
+ AC_HELP_STRING([--disable-optimization],
+ [disable compiler optimization]),
+ [if test $enableval = no ; then
+ CFLAGS=`echo $CFLAGS | sed 's/-O[[0-9]]//'`
+ fi])
+
AC_MSG_CHECKING([if gcc supports -Wno-pointer-sign])
_gcc_cflags_save=$CFLAGS
More information about the Gnupg-commits
mailing list