Autoconf setup now sets build flags for C++.

This commit is contained in:
SarahW 2018-03-04 13:58:45 +00:00
commit 8e52c00ffc
3 changed files with 242 additions and 127 deletions

View file

@ -28,9 +28,11 @@ AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug], [build debug executable]))
if test "$enable_debug" = "yes"; then
CFLAGS="-Wall -O0 -g -D_DEBUG"
CXXFLAGS="-Wall -O0 -g -D_DEBUG"
AC_MSG_RESULT([yes])
else
CFLAGS="-O3"
CXXFLAGS="-O3"
AC_MSG_RESULT([no])
fi