X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/a99fdd984c088376717be704713dcee97963a2ef..02baa030aa6273c97592f6790499f8892cb59223:/packages/ltrace/build.sh diff --git a/packages/ltrace/build.sh b/packages/ltrace/build.sh index 364c2646..513530b4 100644 --- a/packages/ltrace/build.sh +++ b/packages/ltrace/build.sh @@ -1,25 +1,18 @@ TERMUX_PKG_HOMEPAGE=http://www.ltrace.org/ TERMUX_PKG_DESCRIPTION="Tracks runtime library calls in dynamically linked programs" TERMUX_PKG_VERSION=0.7.3.20160411 -TERMUX_PKG_DEPENDS="elfutils, libgnustl" - -# TERMUX_PKG_SRCURL=http://www.ltrace.org/ltrace_${TERMUX_PKG_VERSION}.orig.tar.bz2 -# TERMUX_PKG_FOLDERNAME=ltrace-${TERMUX_PKG_VERSION} - +TERMUX_PKG_DEPENDS="elfutils" _COMMIT=2def9f1217374cc8371105993003b2c663aefda7 TERMUX_PKG_SRCURL=https://github.com/dkogan/ltrace/archive/${_COMMIT}.zip TERMUX_PKG_FOLDERNAME=ltrace-${_COMMIT} - -termux_step_pre_configure () { - autoreconf -i ../src -} - - TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_host=$TERMUX_ARCH-generic-linux-gnu" +# Needed for clang build: +TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-werror" -CFLAGS+=" -Wno-error=maybe-uninitialized" +termux_step_pre_configure () { + #CFLAGS+=" -Wno-error=maybe-uninitialized" + # rindex is obsolete name of strrchr which is not available in Android: + CFLAGS+=" -Drindex=strrchr" -# 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+=" -Drindex=strrchr" + autoreconf -i ../src +}