fortune-mod: crappy utility expects signed chars.

Else off.c loops infinitely.
This commit is contained in:
Christian Neukirchen 2015-04-07 23:48:16 +02:00
parent f9a2d0fd67
commit a54fbf5fa4

View file

@ -1,7 +1,7 @@
# Template file for 'fortune-mod'
pkgname=fortune-mod
version=1.99.1
revision=2
revision=3
hostmakedepends="recode"
makedepends="recode-devel"
short_desc="Implementation of the BSDGames 'fortune' program"
@ -13,7 +13,7 @@ checksum=fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace
nocross=yes
do_build() {
sed -i "s|^CFLAGS=.*|CFLAGS=${CFLAGS} \$(DEFINES)|" Makefile
sed -i "s|^CFLAGS=.*|CFLAGS=${CFLAGS} -fsigned-char \$(DEFINES)|" Makefile
sed -i "s|^LDFLAGS=.*|LDFLAGS=${LDFLAGS}|" Makefile
make CC=$CC COOKIEDIR=/usr/share/fortunes
}