2016-07-26 23:54:55 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://valgrind.org/
|
2017-12-05 22:33:04 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Instrumentation framework for building dynamic analysis tools"
|
2017-06-28 12:09:23 +02:00
|
|
|
TERMUX_PKG_VERSION=3.13.0
|
|
|
|
TERMUX_PKG_SRCURL=ftp://sourceware.org/pub/valgrind/valgrind-${TERMUX_PKG_VERSION}.tar.bz2
|
|
|
|
TERMUX_PKG_SHA256=d76680ef03f00cd5e970bbdcd4e57fb1f6df7d2e2c071635ef2be74790190c3b
|
2016-07-28 23:50:42 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-tmpdir=$TERMUX_PREFIX/tmp"
|
2016-08-02 13:41:37 +02:00
|
|
|
# - Does not build on x86_64 due to lacking upstream support of that arch on android.
|
2016-12-23 22:42:37 +01:00
|
|
|
# See https://bugs.kde.org/show_bug.cgi?id=348342
|
2016-10-07 19:59:55 +02:00
|
|
|
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
|
2017-01-15 19:41:40 +01:00
|
|
|
# With a clang build on aarch64:
|
|
|
|
# "error: the clang compiler does not support '-mcpu=cortex-a8'":
|
|
|
|
TERMUX_PKG_CLANG=no
|
2016-07-26 23:54:55 +02:00
|
|
|
|
2017-01-19 18:40:53 +01:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
if [ "$TERMUX_ARCH" == "arm" ]; then
|
|
|
|
# valgrind doesn't like arm; armv7 works, though.
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --host=armv7-linux-androideabi"
|
|
|
|
# http://lists.busybox.net/pipermail/buildroot/2013-November/082270.html:
|
|
|
|
# "valgrind uses inline assembly that is not Thumb compatible":
|
|
|
|
CFLAGS=${CFLAGS/-mthumb/}
|
|
|
|
fi
|
|
|
|
}
|