Fix few typo and change défault optimisation lvl for O3 for gcc.
This commit is contained in:
lighta
2014-12-19 23:55:14 -05:00
parent 5a80fb108c
commit a0753244f7
6 changed files with 22 additions and 37 deletions

View File

@@ -962,10 +962,6 @@ fi
# Debug
#
case $enable_debug in
"no")
# default value
CPPFLAGS="$CPPFLAGS"
;;
"yes")
if test $ac_cv_prog_cc_g = yes; then
CPPFLAGS="$CPPFLAGS -g -DDEBUG"
@@ -978,12 +974,15 @@ case $enable_debug in
"gdb")
if test $ac_cv_prog_cc_g = yes; then
CPPFLAGS="$CPPFLAGS -ggdb -DDEBUG"
LDFLAGS="$LDFLAGS -g"
LDFLAGS="$LDFLAGS -ggdb"
else
echo "error: --enable-debug flag=$enable_debug entered but the compiler does not support -g"
exit 1
fi
;;
*) # default value
CPPFLAGS="$CPPFLAGS"
;;
esac
#
@@ -1261,8 +1260,8 @@ else
AC_MSG_RESULT([no])
fi
CFLAGS="$OPT_LTO $CFLAGS"
CFLAGS_AR="$OPT_LTO_AR $CFLAGS"
CFLAGS="$OPT_LTO $CFLAGS"
AC_SUBST([CFLAGS_AR])
AC_MSG_NOTICE([Configure finish])