Commit 0fc1e741 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Include -pipe in CFLAGS.

Reduce optimization level to -O when debugging.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@697 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7ee1dad7
...@@ -14,14 +14,14 @@ AM_INIT_AUTOMAKE ...@@ -14,14 +14,14 @@ AM_INIT_AUTOMAKE
# Compiler flags (assume GCC). # Compiler flags (assume GCC).
# This section *must* come before AC_PROG_CC / AC_PROG_CPP. # This section *must* come before AC_PROG_CC / AC_PROG_CPP.
CFLAGS="${CFLAGS:--O2}" CFLAGS="${CFLAGS:--O2 -pipe}"
DEVELOPER_CFLAGS="-Wall -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls" DEVELOPER_CFLAGS="-Wall -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls"
AC_ARG_ENABLE(developer-warnings, AC_ARG_ENABLE(developer-warnings,
AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]), AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]),
CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}") CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}")
AC_ARG_ENABLE(debugging-symbols, AC_ARG_ENABLE(debugging-symbols,
AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]), AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]),
CFLAGS="${CFLAGS} -g -fno-inline -fno-builtin") CFLAGS="${CFLAGS} -O -g -fno-inline -fno-builtin")
AC_ARG_ENABLE(werror, AC_ARG_ENABLE(werror,
AS_HELP_STRING([--enable-werror],[use -Werror (default is NO)]), AS_HELP_STRING([--enable-werror],[use -Werror (default is NO)]),
CFLAGS="${CFLAGS} -Werror") 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