Commit b6a700ae authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Turn off all optimization when building with debugging symbols. Apparently,

just -O is not enough to prevent gcc from optimizing away loop variables.

git-svn-id: http://www.varnish-cache.org/svn/trunk@1132 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent bc258735
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment