summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
Diffstat (limited to 'shells')
-rw-r--r--shells/zsh-devel/Makefile1
-rw-r--r--shells/zsh/Makefile1
2 files changed, 2 insertions, 0 deletions
diff --git a/shells/zsh-devel/Makefile b/shells/zsh-devel/Makefile
index d06f3512477e..39c4466ed52b 100644
--- a/shells/zsh-devel/Makefile
+++ b/shells/zsh-devel/Makefile
@@ -76,6 +76,7 @@ CONFIGURE_ARGS+= --enable-maildir-support
.endif
.if defined(NOSHARED)
+CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -static"
CONFIGURE_ARGS+= --disable-dynamic
PLIST_SUB+= NO_STATIC="@comment "
.else
diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile
index f5eb39c86aa5..d9d46b7f1d30 100644
--- a/shells/zsh/Makefile
+++ b/shells/zsh/Makefile
@@ -74,6 +74,7 @@ CONFIGURE_ARGS+= --enable-maildir-support
.endif
.if defined(NOSHARED)
+CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -static"
CONFIGURE_ARGS+= --disable-dynamic
PLIST_SUB+= NO_STATIC="@comment "
.else