summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-03-07 11:43:07 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-03-07 11:43:07 +0100
commit4b8c29015d7c70121a161da0f3a85fa4ea0c5987 (patch)
tree7bb77c75b9b6d4051d3b402946bb73d3bcd32a95 /configure.ac
parent55b81956ab5f0f80a2edf69421164ac74597bfd1 (diff)
Make detection of HAVE_CXX14_CONSTEXPR work with "selective debugging"
...where "make ... debug=t" is used to build some parts of LO with debug enabled without re-running autogen.sh (so NDEBUG will start to be undefined, so constexpr functions calling assert will start to trigger GCC PR66460). See mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2016-March/073554.html> "Compiler crash when building libreoffice with debug." Change-Id: I6e3c0375c1e5843616fb9fe287d0bf5ee40e64f7
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 0 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index f45af613bef9..934d43a97bc0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6390,11 +6390,6 @@ fi
AC_MSG_CHECKING([whether $CXX supports C++14 constexpr])
save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11"
-if test "$ENABLE_DEBUG" != TRUE -a "$ENABLE_DBGUTIL" != TRUE \
- -a "$ASSERT_ALWAYS_ABORT" != TRUE
-then
- CXXFLAGS="$CXXFLAGS -DNDEBUG"
-fi
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
// A somewhat over-complicated way of checking for