]> err.no Git - varnish/commitdiff
Turn off all optimization when building with debugging symbols. Apparently,
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 27 Sep 2006 13:32:18 +0000 (13:32 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 27 Sep 2006 13:32:18 +0000 (13:32 +0000)
just -O is not enough to prevent gcc from optimizing away loop variables.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1132 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/configure.ac

index 13203beeca5c78128d3087d1bc8177fe69b45a14..a9ffae52ba3d4bc1e9fed433dae59bd06a844392 100644 (file)
@@ -21,7 +21,7 @@ AC_ARG_ENABLE(developer-warnings,
        CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}")
 AC_ARG_ENABLE(debugging-symbols,
        AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]),
-       CFLAGS="${CFLAGS} -O -g -fno-inline")
+       CFLAGS="${CFLAGS} -O0 -g -fno-inline")
 AC_ARG_ENABLE(werror,
        AS_HELP_STRING([--enable-werror],[use -Werror (default is NO)]),
        CFLAGS="${CFLAGS} -Werror")