summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
Diffstat (limited to 'shells')
-rw-r--r--shells/bash/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/shells/bash/Makefile b/shells/bash/Makefile
index e34daf0b5f9..03db101a97c 100644
--- a/shells/bash/Makefile
+++ b/shells/bash/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.92 2020/02/11 11:45:25 kre Exp $
+# $NetBSD: Makefile,v 1.93 2020/03/26 15:06:58 nia Exp $
BASH_VERSION= 5.0
BASH_PATCHLEVEL= 16
@@ -53,14 +53,17 @@ CONFIGURE_ARGS+= --enable-array-variables
.include "options.mk"
# Minix lacks setpgid() which is needed for job control.
-# bash malloc() is also broken on Minix
.if ${OPSYS} == "Minix"
CONFIGURE_ARGS+= --disable-job-control
-CONFIGURE_ARGS+= --with-bash-malloc=no
.else
CONFIGURE_ARGS+= --enable-job-control
.endif
+# bash malloc() is broken on Minix and musl libc
+.if ${OPSYS} == "Minix" || (${OPSYS} == "Linux" && empty(GLIBC_VERSION))
+CONFIGURE_ARGS+= --with-bash-malloc=no
+.endif
+
# Use "readline" package on Darwin to avoid link erros.
.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --with-installed-readline