Prepare more packages for clang
[termux-packages] / packages / mc / build.sh
index d472ba3..f83f02c 100755 (executable)
@@ -4,6 +4,9 @@ TERMUX_PKG_DESCRIPTION="Midnight Commander - a powerful file manager"
 TERMUX_PKG_SRCURL="http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz"
 TERMUX_PKG_DEPENDS="libandroid-support, ncurses, glib"
 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ncurses-libs=$TERMUX_PREFIX/lib --with-screen=ncurses"
-# 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"
+}