X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/7ce5638519cda066cd6adc547a574050c235c551..099d4d498049f3c04b6df55b27ae1f8019e157c8:/packages/ltrace/build.sh diff --git a/packages/ltrace/build.sh b/packages/ltrace/build.sh index c808170c..513530b4 100644 --- a/packages/ltrace/build.sh +++ b/packages/ltrace/build.sh @@ -6,12 +6,12 @@ _COMMIT=2def9f1217374cc8371105993003b2c663aefda7 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