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"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2018-10-18 05:52:57 +02:00
|
|
|
TERMUX_PKG_VERSION=3.14.0
|
|
|
|
TERMUX_PKG_SHA256=037c11bfefd477cc6e9ebe8f193bb237fe397f7ce791b4a4ce3fa1c6a520baa5
|
2017-06-28 12:09:23 +02:00
|
|
|
TERMUX_PKG_SRCURL=ftp://sourceware.org/pub/valgrind/valgrind-${TERMUX_PKG_VERSION}.tar.bz2
|
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.
|
2018-08-17 21:12:13 +02:00
|
|
|
# https://bugs.kde.org/show_bug.cgi?id=348342
|
|
|
|
# - Does not build on aarch64 using clang, fails with
|
|
|
|
# "`__builtin_longjmp is not supported for the current target"
|
|
|
|
# https://bugs.kde.org/show_bug.cgi?id=369723
|
2018-08-19 02:45:18 +02:00
|
|
|
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
|
2016-07-26 23:54:55 +02:00
|
|
|
|
2017-01-19 18:40:53 +01:00
|
|
|
termux_step_pre_configure() {
|
2018-08-19 02:45:18 +02:00
|
|
|
if [ "$TERMUX_ARCH" == "aarch64" ]; then
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/aarch64-setjmp.S $TERMUX_PKG_SRCDIR
|
2018-08-20 21:25:43 +02:00
|
|
|
autoreconf -if
|
2018-08-19 02:45:18 +02:00
|
|
|
fi
|
2017-01-19 18:40:53 +01:00
|
|
|
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
|
2018-02-17 00:19:35 +01:00
|
|
|
if [ "$TERMUX_DEBUG" == "true" ]; then
|
|
|
|
CFLAGS=${CFLAGS/-fstack-protector/}
|
|
|
|
fi
|
2017-01-19 18:40:53 +01:00
|
|
|
}
|