Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16458

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

From Jessica Clarke <jrtc27@jrtc27.com>
Newsgroups gnu.bash.bug
Subject [PATCH 3/3] configure.ac: Disable Bash malloc on FreeBSD/arm64 and FreeBSD/RISC-V
Date 2020-06-27 21:06 +0100
Message-ID <mailman.525.1593295306.2574.bug-bash@gnu.org> (permalink)
References <20200627200631.38456-1-jrtc27@jrtc27.com> <20200627200631.38456-4-jrtc27@jrtc27.com>

Show all headers | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

[PATCH 3/3] configure.ac: Disable Bash malloc on FreeBSD/arm64 and FreeBSD/RISC-V Jessica Clarke <jrtc27@jrtc27.com> - 2020-06-27 21:06 +0100

csiph-web