diff options
author | jtb <jtb@pkgsrc.org> | 2001-04-09 00:35:38 +0000 |
---|---|---|
committer | jtb <jtb@pkgsrc.org> | 2001-04-09 00:35:38 +0000 |
commit | 5ed9c57afbe5912aca0c8245486c885153a51bf1 (patch) | |
tree | 30141544ae3aa8da52829844c97e6d8b9cf67084 | |
parent | 0a463d2ba2cb432080840e979fba972f02e0ecff (diff) | |
download | pkgsrc-5ed9c57afbe5912aca0c8245486c885153a51bf1.tar.gz |
ZSH_STATIC can be defined in /etc/mk.conf instead of editing the Makefile.
-rw-r--r-- | shells/zsh/Makefile | 9 |
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 |