===================================================================
@@ -6636,7 +6636,7 @@
# Disable exceptions and RTTI if building with g++
noexception_flags=
save_CFLAGS="$CFLAGS"
-for real_option in -fno-exceptions -fno-rtti; do
+for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
# Do the check with the no- prefix removed since gcc silently
# accepts any -Wno-* option on purpose
case $real_option in
===================================================================
@@ -365,7 +365,8 @@
# Disable exceptions and RTTI if building with g++
ACX_PROG_CC_WARNING_OPTS(
- m4_quote(m4_do([-fno-exceptions -fno-rtti])), [noexception_flags])
+ m4_quote(m4_do([-fno-exceptions -fno-rtti -fasynchronous-unwind-tables])),
+ [noexception_flags])
# Enable expensive internal checks
is_release=