Skip to content

Commit

Permalink
tcsh: compile with -fno-optimize-strlen
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Nov 3, 2016
1 parent 1a69fdb commit 0e8b6ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tcsh.be0
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e8b6ef

Please sign in to comment.