diff options
author | nia <nia@pkgsrc.org> | 2020-03-26 15:06:58 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-03-26 15:06:58 +0000 |
commit | d2bb0b1e77bd159bf3fe31932e2205bb3b98096d (patch) | |
tree | 83cd4a53ddb9fb7900ddadb8b573c8cc772bf93e /shells | |
parent | 34a16e3aa5ca2d6e8b38dfa71e726d1586c16f6e (diff) | |
download | pkgsrc-d2bb0b1e77bd159bf3fe31932e2205bb3b98096d.tar.gz |
bash: Disable bash-malloc on Linux with musl libc
from Michael Forney
Diffstat (limited to 'shells')
-rw-r--r-- | shells/bash/Makefile | 9 |
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 |