-# Pull request submitted to replace rindex() with strrchr() at
-# https://github.com/DavidGriffith/frotz/pull/20
-CFLAGS+=" -Drindex=strrchr"
+termux_step_pre_configure() {
+ # Pull request submitted to replace rindex() with strrchr() at
+ # https://github.com/DavidGriffith/frotz/pull/20
+ CFLAGS+=" -Drindex=strrchr"
+}