From 0e8b6ef23461d0cae0ba5af77e227c57e72a52a7 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 3 Nov 2016 21:24:27 +0100 Subject: [PATCH] tcsh: compile with -fno-optimize-strlen The gcc compiler optimization to replace a call of malloc followed by a call of memset with a calloc call conflicts with tcshs own implementation of calloc, which calls malloc and memset. This bug is reported to and acknowledged by the maintainer ( http://mx.gw.com/pipermail/tcsh-bugs/2015-May/000930.html ) and should be fixed in the next tcsh release. --- tcsh.be0 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcsh.be0 b/tcsh.be0 index 369d9ca71..286ba34bc 100755 --- a/tcsh.be0 +++ b/tcsh.be0 @@ -53,9 +53,9 @@ SRCURL[0]="http://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/tcsh-${PKGVER # bee_patch "${@}" #} -#mee_configure() { -# bee_configure -#} +mee_configure() { + CFLAGS=-fno-optimize-strlen bee_configure +} #mee_build() { # bee_build