Don't optimize when debug is enabled
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 9 Aug 2008 03:26:46 +0000 (05:26 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 9 Aug 2008 03:26:46 +0000 (05:26 +0200)
configure.ac

index 64196c9..6508cd4 100644 (file)
@@ -28,7 +28,7 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
                        [enable compiling with debugging information]), [
        if (test "${enableval}" = "yes" &&
                                test "${ac_cv_prog_cc_g}" = "yes"); then
-               CFLAGS="$CFLAGS -g"
+               CFLAGS="$CFLAGS -g -O0"
        fi
 ])