Autoconf setup now sets build flags for C++.
This commit is contained in:
parent
319a929a20
commit
8e52c00ffc
3 changed files with 242 additions and 127 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue