From a4a7dda7ef0cbd263e0af3da1c8c79b63f7b68be Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Wed, 23 Apr 2008 19:33:03 +0000 Subject: [PATCH] Use -O0 in debug builds so that variables do not get optimized out. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@347 119443c7-1b9e-41f8-b6fc-b9c35fce742c --- ChangeLog | 3 +++ configure.ac | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 889e607..e041924 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ Version 1.6.6 ******************************************************************************* +2008-04-23 Marcelo Jimenez + * Use -O0 in debug builds so that variables do not get optimized out. + 2008-04-10 Marcelo Jimenez * Apostolos Syropoulos changes for OpenSolaris x86. diff --git a/configure.ac b/configure.ac index d3e06fa..5722e78 100644 --- a/configure.ac +++ b/configure.ac @@ -299,7 +299,9 @@ freebsd*) echo "Using non-specific system compiler settings" if test x"$enable_debug" = xyes; then # AC_PROG_CC already sets CFLAGS to "-g -O2" by default - : + #: + # Use -O0 in debug so that variables do not get optimized out + AX_CFLAGS_GCC_OPTION([-O0]) else # add optimise for size AX_CFLAGS_GCC_OPTION([-Os])