2015-11-30 00:33:56 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://www.ltrace.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Tracks runtime library calls in dynamically linked programs"
|
2016-05-07 21:48:14 +02:00
|
|
|
TERMUX_PKG_VERSION=0.7.3.20160411
|
2018-06-26 13:29:06 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2016-08-11 01:45:41 +02:00
|
|
|
TERMUX_PKG_DEPENDS="elfutils"
|
2017-03-23 22:44:06 +01:00
|
|
|
local _COMMIT=2def9f1217374cc8371105993003b2c663aefda7
|
2016-05-07 21:48:14 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/dkogan/ltrace/archive/${_COMMIT}.zip
|
2017-03-23 22:44:06 +01:00
|
|
|
TERMUX_PKG_SHA256=d089ae8affd8af782c12aed7ba97f44c7f55b60033ec78ab07e415e7b091a90c
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--disable-werror
|
|
|
|
--without-libunwind
|
|
|
|
ac_cv_host=$TERMUX_ARCH-generic-linux-gnu
|
|
|
|
"
|
2016-05-07 21:48:14 +02:00
|
|
|
|
2016-09-04 00:45:08 +02:00
|
|
|
termux_step_pre_configure () {
|
2017-03-23 22:44:06 +01:00
|
|
|
# rindex is an obsolete version of strrchr which is not available in Android:
|
2016-09-04 00:45:08 +02:00
|
|
|
CFLAGS+=" -Drindex=strrchr"
|
2018-05-27 14:55:20 +02:00
|
|
|
if [ "$TERMUX_ARCH" == "arm" ]; then
|
|
|
|
CFLAGS+=" -DSHT_ARM_ATTRIBUTES=0x70000000+3"
|
|
|
|
fi
|
2016-05-07 21:48:14 +02:00
|
|
|
|
2016-09-04 00:45:08 +02:00
|
|
|
autoreconf -i ../src
|
|
|
|
}
|