bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/3] configure.ac: Disable Bash malloc on FreeBSD/arm64 and FreeB


From: Jessica Clarke
Subject: [PATCH 3/3] configure.ac: Disable Bash malloc on FreeBSD/arm64 and FreeBSD/RISC-V
Date: Sat, 27 Jun 2020 21:06:31 +0100

These recent ports do not provide sbrk(2) and so the Bash version of
malloc cannot be used.
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index 52b4cdbd..dd8d9003 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,6 +88,9 @@ sparc-linux*) opt_bash_malloc=no ;;   # sparc running linux; 
requires ELF
 *-qnx*)                opt_bash_malloc=no ;;   # QNX 4.2, QNX [67].x
 *-nsk*)                opt_bash_malloc=no ;;   # HP NonStop
 *-haiku*)      opt_bash_malloc=no ;;   # Haiku OS
+# Recent FreeBSD architectures lack the deprecated sbrk(2)
+aarch64-freebsd*)      opt_bash_malloc=no ;;
+riscv*-freebsd*)       opt_bash_malloc=no ;;
 # Deprecated -- bash malloc is suitable
 #sparc-netbsd*)        opt_bash_malloc=no ;;   # needs 8-byte alignment
 #mips-irix6*)  opt_bash_malloc=no ;;   # needs 8-byte alignment
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]