summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-08-20 10:36:12 +0000
committertron <tron@pkgsrc.org>2004-08-20 10:36:12 +0000
commitc358f9e4d09509ef85fa54e01694a4b9023726f2 (patch)
tree9ed45ed6d474a07e1b9ec9395a2d807d21e9095f /shells
parent6cae704dd84904f20c9ef98986882c899e4f4dac (diff)
downloadpkgsrc-c358f9e4d09509ef85fa54e01694a4b9023726f2.tar.gz
Don't create a statically linked "zsh" binary on NetBSD system which have
dynamic library support on the root partition (e.g. 2.0 and newer). It is enough that the "zsh" binary does *not* depend on its own shared libraries which won't be on the root partition and we get a shell with proper I18N support this way. Approved by Masao Uebayashi.
Diffstat (limited to 'shells')
-rw-r--r--shells/zsh/Makefile.common5
1 files changed, 4 insertions, 1 deletions
diff --git a/shells/zsh/Makefile.common b/shells/zsh/Makefile.common
index 6958ee37fcb..283f867674d 100644
--- a/shells/zsh/Makefile.common
+++ b/shells/zsh/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.13 2004/08/16 16:17:39 recht Exp $
+# $NetBSD: Makefile.common,v 1.14 2004/08/20 10:36:12 tron Exp $
DISTNAME= zsh-${ZSH_VERSION}
CATEGORIES= shells
@@ -29,7 +29,10 @@ BUILD_DEFS+= ZSH_STATIC
.if defined(ZSH_STATIC) && !empty(ZSH_STATIC:M[Yy][Ee][Ss])
CONFIGURE_ARGS+=--disable-dynamic
+
+. if !(${OPSYS} == "NetBSD" && exists(/libexec/ld.elf_so))
LDFLAGS+= -static
+. endif
.else
. if ${OPSYS} == "SunOS"
PLIST_SRC= ${PKGDIR}/PLIST.dynamic ${PKGDIR}/PLIST