TERMUX_PKG_SRCURL=https://github.com/dkogan/ltrace/archive/${_COMMIT}.zip
TERMUX_PKG_FOLDERNAME=ltrace-${_COMMIT}
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_host=$TERMUX_ARCH-generic-linux-gnu"
+# Needed for clang build:
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-werror"
termux_step_pre_configure () {
- CFLAGS+=" -Wno-error=maybe-uninitialized"
- # rindex is obsolete name of strrchr which is not available in Android
- # function signature stays same, so I'm replacing it with C preprocessor
- # instead of patch
+ #CFLAGS+=" -Wno-error=maybe-uninitialized"
+ # rindex is obsolete name of strrchr which is not available in Android:
CFLAGS+=" -Drindex=strrchr"
autoreconf -i ../src