termux-packages/packages/ltrace/build.sh

26 lines
830 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=http://www.ltrace.org/
TERMUX_PKG_DESCRIPTION="Tracks runtime library calls in dynamically linked programs"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=0.7.3.20160411
2019-06-19 23:31:13 +02:00
TERMUX_PKG_REVISION=5
local _COMMIT=2def9f1217374cc8371105993003b2c663aefda7
TERMUX_PKG_SRCURL=https://github.com/dkogan/ltrace/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=d089ae8affd8af782c12aed7ba97f44c7f55b60033ec78ab07e415e7b091a90c
2019-06-19 23:31:13 +02:00
TERMUX_PKG_DEPENDS="libc++, libelf"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-werror
--without-libunwind
ac_cv_host=$TERMUX_ARCH-generic-linux-gnu
"
termux_step_pre_configure() {
# rindex is an obsolete version of strrchr which is not available in Android:
2016-09-04 00:45:08 +02:00
CFLAGS+=" -Drindex=strrchr"
if [ "$TERMUX_ARCH" == "arm" ]; then
CFLAGS+=" -DSHT_ARM_ATTRIBUTES=0x70000000+3"
fi
2016-09-04 00:45:08 +02:00
autoreconf -i ../src
}