From b158c8de2a1871ae712d2e1c42d31dbb37f3bd64 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Wed, 3 Feb 2021 10:33:49 +0100 Subject: [PATCH] emacs: set additional configure flags for debug build As suggested in the DEBUG documentation: https://github.com/emacs-mirror/emacs/blob/master/etc/DEBUG --- packages/emacs/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/emacs/build.sh b/packages/emacs/build.sh index 9739688e5..acf55590a 100644 --- a/packages/emacs/build.sh +++ b/packages/emacs/build.sh @@ -29,6 +29,15 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --with-pdumper=yes --with-dumping=none " + +if $TERMUX_DEBUG; then + TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" + --enable-checking=yes,glyphs + --enable-check-lisp-object-type + " + CFLAGS+=" -gdwarf-4" +fi + # Ensure use of system malloc: TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" emacs_cv_sanitize_address=yes" # Prevent configure from adding -nopie: