bash: use libc malloc on musl instead of internal malloc (#46370)

This commit is contained in:
David Collins
2024-09-13 03:54:56 -06:00
committed by GitHub
parent 71df434d1f
commit a85afb829e

View File

@@ -203,6 +203,9 @@ def configure_args(self):
args.append(f"--with-libiconv-prefix={spec['iconv'].prefix}")
else:
args.append("--without-libiconv-prefix")
# bash malloc relies on sbrk which fails intentionally in musl
if spec.satisfies("^[virtuals=libc] musl"):
options.append("--without-bash-malloc")
return args
def check(self):