php: Update from 7.1 RC3 to RC4
[termux-packages] / packages / ltrace / build.sh
1 TERMUX_PKG_HOMEPAGE=http://www.ltrace.org/
2 TERMUX_PKG_DESCRIPTION="Tracks runtime library calls in dynamically linked programs"
3 TERMUX_PKG_VERSION=0.7.3.20160411
4 TERMUX_PKG_DEPENDS="elfutils"
5 _COMMIT=2def9f1217374cc8371105993003b2c663aefda7
6 TERMUX_PKG_SRCURL=https://github.com/dkogan/ltrace/archive/${_COMMIT}.zip
7 TERMUX_PKG_FOLDERNAME=ltrace-${_COMMIT}
8 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_host=$TERMUX_ARCH-generic-linux-gnu"
9
10 termux_step_pre_configure () {
11 CFLAGS+=" -Wno-error=maybe-uninitialized"
12 # rindex is obsolete name of strrchr which is not available in Android
13 # function signature stays same, so I'm replacing it with C preprocessor
14 # instead of patch
15 CFLAGS+=" -Drindex=strrchr"
16
17 autoreconf -i ../src
18 }