From b298ef84fc4bc54803ab507567d974976552938b Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sat, 16 Mar 2019 13:38:23 +0100 Subject: [PATCH] frotz: replace rindex with strrchr --- packages/frotz/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/frotz/build.sh b/packages/frotz/build.sh index f15658dd9..a0bf1d8b3 100644 --- a/packages/frotz/build.sh +++ b/packages/frotz/build.sh @@ -9,6 +9,10 @@ TERMUX_PKG_SRCURL=https://github.com/DavidGriffith/frotz/archive/${TERMUX_PKG_VE TERMUX_PKG_SHA256=dbb5eb3bc95275dcb984c4bdbaea58bc1f1b085b20092ce6e86d9f0bf3ba858f TERMUX_PKG_BUILD_IN_SRC=yes +termux_step_pre_configure () { + CFLAGS+=" -Drindex=strrchr" +} + termux_step_make () { CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j $TERMUX_MAKE_PROCESSES install }