Make default optimization -O2 when building using *nix tools.

Allow CXXFLAGS to override the default flags when not using --enable-debug.
This commit is contained in:
Bruno Wolff III 2006-08-08 16:52:55 +00:00
parent 8ac54337b0
commit a73c9120f5

View File

@ -60,9 +60,9 @@ AC_ARG_ENABLE([debug],
if test "x$debug" = "xyes"
then
CXXFLAGS="$CXXFLAGS -DDEBUG -O0 -ggdb3 -W -Wall -ansi "
CXXFLAGS="$CXXFLAGS -O0 -DDEBUG -ggdb3 -W -Wall -ansi"
else
CXXFLAGS="$CXXFLAGS -W -Wall -ansi "
CXXFLAGS="-O2 -W -Wall -ansi $CXXFLAGS"
fi
AC_ARG_ENABLE([static],