summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2019-03-14 09:45:25 +0000
committerwiz <wiz@pkgsrc.org>2019-03-14 09:45:25 +0000
commiteac41f0eb0f076b6b3d6710c520604a23401b7bf (patch)
treed8b83fee5b36a644d3c7f107d7b9af756330bd8e /shells
parentf7581b9dab6db79fc525d6df94e1dbe32ce62c10 (diff)
downloadpkgsrc-eac41f0eb0f076b6b3d6710c520604a23401b7bf.tar.gz
zsh: add debug option, default off
This makes zsh much more stable on -current for me.
Diffstat (limited to 'shells')
-rw-r--r--shells/zsh/options.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/shells/zsh/options.mk b/shells/zsh/options.mk
index fb9ebe54272..6a30c5884b9 100644
--- a/shells/zsh/options.mk
+++ b/shells/zsh/options.mk
@@ -1,10 +1,20 @@
-# $NetBSD: options.mk,v 1.2 2017/10/13 09:35:19 jperkin Exp $
+# $NetBSD: options.mk,v 1.3 2019/03/14 09:45:25 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.zsh
-PKG_SUPPORTED_OPTIONS= static
+PKG_SUPPORTED_OPTIONS= debug static
.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-zsh-debug
+CONFIGURE_ARGS+= --enable-zsh-hash-debug
+CONFIGURE_ARGS+= --enable-zsh-heap-debug
+CONFIGURE_ARGS+= --enable-zsh-mem
+CONFIGURE_ARGS+= --enable-zsh-mem-debug
+CONFIGURE_ARGS+= --enable-zsh-mem-warning
+CONFIGURE_ARGS+= --enable-zsh-secure-free
+.endif
+
PLIST_VARS+= dynamic
.if !empty(PKG_OPTIONS:Mstatic)
CONFIGURE_ARGS+= --disable-dynamic