summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-07-14 08:08:55 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-07-14 08:08:55 +0000
commit1b5adaaa2d90972379ad79b263e951316da13f73 (patch)
tree40cda179852807fbecfcb619cf9eadd402c97bda /configure
parent9f21da0f1b9dddceef98038e864c76028bf976ea (diff)
Added stack trace on Linux when crashing for httrack
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure37
1 files changed, 37 insertions, 0 deletions
diff --git a/configure b/configure
index 1023c04..e656504 100755
--- a/configure
+++ b/configure
@@ -12246,6 +12246,43 @@ else
fi
+## Export all symbols for backtraces
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -rdynamic" >&5
+$as_echo_n "checking whether C compiler accepts -rdynamic... " >&6; }
+if ${ax_cv_check_cflags___rdynamic+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ ax_check_save_flags=$CFLAGS
+ CFLAGS="$CFLAGS -rdynamic"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ax_cv_check_cflags___rdynamic=yes
+else
+ ax_cv_check_cflags___rdynamic=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS=$ax_check_save_flags
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___rdynamic" >&5
+$as_echo "$ax_cv_check_cflags___rdynamic" >&6; }
+if test x"$ax_cv_check_cflags___rdynamic" = xyes; then :
+ DEFAULT_CFLAGS="$DEFAULT_CFLAGS -rdynamic"
+else
+ :
+fi
+
+
### Check for -fvisibility=hidden support