From c594d99ffbda5f74ec3ecfc4589bf5dd3c6726d6 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 24 Aug 2017 12:16:24 -0400 Subject: [PATCH] configure: Add `-funwind-tables` Certain platforms( ARM comes to mind ) in order to get a proper stack trace on crash you need to compile with this value. Since it only slightly increases the size of the binary for other platforms, I would consider it worthwhile to include this directive. Signed-off-by: Donald Sharp --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index ec04190485..f6f38b47cf 100755 --- a/configure.ac +++ b/configure.ac @@ -195,6 +195,7 @@ fi dnl always want these CFLAGS AC_C_FLAG([-fno-omit-frame-pointer]) +AC_C_FLAG([-funwind-tables]) AC_C_FLAG([-Wall]) AC_C_FLAG([-Wextra]) AC_C_FLAG([-Wmissing-prototypes]) -- 2.39.5