diff --git a/configure.ac b/configure.ac index aaee8a001..80605301f 100644 --- a/configure.ac +++ b/configure.ac @@ -233,7 +233,7 @@ AC_PATH_PROG(CMP, cmp) # PROSPECTIVE_CFLAGS="-Wall -Wextra -Wshadow -Werror -std=c99 -pedantic-errors" -PROSPECTIVE_CXXFLAGS="-Wall -Wextra -Wshadow -Werror -std=gnu++98 -Wno-c++14-compat -fno-exceptions -fno-rtti" +PROSPECTIVE_CXXFLAGS="-Wall -Wextra -Wshadow -Werror -std=gnu++98 -Wno-c++14-compat -fno-exceptions" AC_CACHE_CHECK([whether $CC is Clang], [nl_cv_clang], @@ -320,6 +320,11 @@ AC_MSG_RESULT(${enable_fuzz_targets}) AM_CONDITIONAL([OPENTHREAD_ENABLE_FUZZ_TARGETS], [test "${enable_fuzz_targets}" = "yes"]) +if test "${enable_fuzz_targets}" = "no" ; then + PROSPECTIVE_CXXFLAGS="-fno-rtti" + AX_CHECK_COMPILER_OPTIONS([C++], ${PROSPECTIVE_CXXFLAGS}) +fi + # Address Sanitizer AC_MSG_CHECKING([whether to build with Address Sanitizer support])