diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2015-06-04 00:45:45 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2015-06-04 00:45:45 +0200 |
| commit | 2cba1d5be56c4768ac1a7dfb422c9f7c4c6611b9 (patch) | |
| tree | 7a38e488caccd78aa42d967d7937361b73341a77 /configure.ac | |
| parent | a6dfc269d93cdf557f6dac62b03b886d694faecd (diff) | |
Disable exceptions
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 5 |
1 files changed, 2 insertions, 3 deletions
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<int> 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 <memory> |
