* configure.ac: Add --disable-optimization. This is handy for debugging

so the compiler doesn't rearrange things and eliminate variables.
This commit is contained in:
David Shaw 2006-05-23 15:32:57 +00:00
parent 197c7a3e47
commit 8fa55e28fe
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2006-05-23 David Shaw <dshaw@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@g10code.de>
* configure.ac: Remove check for noexecstack and invoke

View File

@ -1264,6 +1264,15 @@ if test "$GCC" = yes; then
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