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 64196c97103fe3177276713ee37e2d10415c7dc5..6508cd44ab0da3e87cb67f69e269fc9619f28475 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
 ])