Consider CFLAGS fom commandline was broken

This commit is contained in:
dwarning 2008-06-01 20:21:57 +00:00
parent cb8dc85cfb
commit f11dc7f203
1 changed files with 5 additions and 5 deletions

View File

@ -188,22 +188,22 @@ dnl ---------------
AC_PROG_CC
dnl Work on compiler options according to system:
dnl Set default CFLAG - only use -Wall if we have gcc
dnl Set default CFLAGS - only use -Wall if we have gcc
dnl the above AC_PROG_CC may set CFLAGS to "-O2 -g"
if test "$enable_debug" = "no"; then
if test "x$GCC" = "xyes"; then
AC_MSG_WARN(Removing debugging option!)
CFLAGS="-O2 -Wall"
CFLAGS="$CFLAGS -O2 -Wall"
else
AC_MSG_WARN(Removing debugging option!)
CFLAGS=""
CFLAGS="$CFLAGS"
fi
else
if test "x$GCC" = "xyes"; then
CFLAGS="-g -O0 -Wall"
CFLAGS="$CFLAGS -g -O0 -Wall"
else
CFLAGS="-g"
CFLAGS="$CFLAGS -g"
fi
fi