summaryrefslogtreecommitdiff
path: root/shells/zsh
diff options
context:
space:
mode:
authorjtb <jtb>2001-04-09 00:35:38 +0000
committerjtb <jtb>2001-04-09 00:35:38 +0000
commit27f0aba6057d839af24752b210c41e1937b9cd58 (patch)
tree30141544ae3aa8da52829844c97e6d8b9cf67084 /shells/zsh
parent889f4a957d3886d26fab73f17289628a99b813c6 (diff)
downloadpkgsrc-27f0aba6057d839af24752b210c41e1937b9cd58.tar.gz
ZSH_STATIC can be defined in /etc/mk.conf instead of editing the Makefile.
Diffstat (limited to 'shells/zsh')
-rw-r--r--shells/zsh/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile
index 8d5037f2a2b..f69b1882363 100644
--- a/shells/zsh/Makefile
+++ b/shells/zsh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2001/02/17 17:40:21 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2001/04/09 00:35:38 jtb Exp $
#
DISTNAME= zsh-3.0.7
@@ -18,8 +18,11 @@ COMMENT= The Z shell
GNU_CONFIGURE= yes
INFO_FILES= zsh.info
-# If you want to build a static binary, uncomment the following line
-#LDFLAGS+=-static
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(ZSH_STATIC)
+LDFLAGS+= -static
+.endif
post-install:
${CP} /etc/shells /etc/shells.bak