summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorjtb <jtb>2001-04-09 00:35:38 +0000
committerjtb <jtb>2001-04-09 00:35:38 +0000
commit71bd94dfae85b575efdb88b77d1334072be4a72f (patch)
tree30141544ae3aa8da52829844c97e6d8b9cf67084 /shells
parent095d21f0f26fa5538d9f90a834523b03121451d8 (diff)
downloadpkgsrc-71bd94dfae85b575efdb88b77d1334072be4a72f.tar.gz
ZSH_STATIC can be defined in /etc/mk.conf instead of editing the Makefile.
Diffstat (limited to 'shells')
-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