summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4517cff..0e75664 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,8 @@ AM_INIT_AUTOMAKE([foreign 1.11 silent-rules subdir-objects -Wall -Werror])
AM_SILENT_RULES
AM_MAINTAINER_MODE
+AS_IF([test -z "${CXXFLAGS}"], [CXXFLAGS='-O0'], [])
+
AC_PROG_CXX
AC_LANG([C++])
AX_CXX_COMPILE_STDCXX_11([noext])