emacs: set additional configure flags for debug build

As suggested in the DEBUG documentation:
https://github.com/emacs-mirror/emacs/blob/master/etc/DEBUG
This commit is contained in:
Henrik Grimler 2021-02-03 10:33:49 +01:00
parent 9887e8cbfd
commit b158c8de2a

View File

@ -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: