From 2cba1d5be56c4768ac1a7dfb422c9f7c4c6611b9 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 4 Jun 2015 00:45:45 +0200 Subject: Disable exceptions --- configure.ac | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7a691e0..abdf761 100644 --- a/configure.ac +++ b/configure.ac @@ -10,8 +10,7 @@ AM_PROG_CC_C_O AC_LANG([C++]) DEFINES= -#-fno-exceptions -AX_APPEND_COMPILE_FLAGS([-fno-rtti],DEFINES) +AX_APPEND_COMPILE_FLAGS([-fno-rtti -fno-exceptions],DEFINES) # Test c++11 OLDCXXFLAGS="$CXXFLAGS" @@ -31,7 +30,7 @@ std::shared_ptr j(i); [AC_MSG_RESULT([yes]) DEFINES="$DEFINES -std=c++11"], [AC_MSG_RESULT([no]) - CXXFLAGS="-std=c++11 -stdlib=libc++ $CXXFLAGS" + CXXFLAGS="-std=c++11 -stdlib=libc++ $OLDCXXFLAGS" AC_MSG_CHECKING([for C++11 using (-std=c++11 -stdlib=libc++)]) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include -- cgit v1.2.3-70-g09d2