-# mc uses the deprecated S_IWRITE definition, which android does not define:
-# https://code.google.com/p/android/issues/detail?id=19710
-CPPFLAGS="$CPPFLAGS -DS_IWRITE=S_IWUSR"
+
+termux_step_pre_configure() {
+ # mc uses the deprecated S_IWRITE definition, which android does not define:
+ # https://code.google.com/p/android/issues/detail?id=19710
+ CPPFLAGS+=" -DS_IWRITE=S_IWUSR"
+}