libgpg-error: Update from 1.27 to 1.29
[termux-packages] / packages / valgrind / build.sh
CommitLineData
c871e251 1TERMUX_PKG_HOMEPAGE=http://valgrind.org/
b8132d99 2TERMUX_PKG_DESCRIPTION="Instrumentation framework for building dynamic analysis tools"
6ff57d2e
FF
3TERMUX_PKG_VERSION=3.13.0
4TERMUX_PKG_SRCURL=ftp://sourceware.org/pub/valgrind/valgrind-${TERMUX_PKG_VERSION}.tar.bz2
5TERMUX_PKG_SHA256=d76680ef03f00cd5e970bbdcd4e57fb1f6df7d2e2c071635ef2be74790190c3b
9f54f4f6 6TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-tmpdir=$TERMUX_PREFIX/tmp"
5a15b12e 7# - Does not build on x86_64 due to lacking upstream support of that arch on android.
382e177e 8# See https://bugs.kde.org/show_bug.cgi?id=348342
60eec6da 9TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
dc0a2fb5
FF
10# With a clang build on aarch64:
11# "error: the clang compiler does not support '-mcpu=cortex-a8'":
12TERMUX_PKG_CLANG=no
c871e251 13
538fab5d
FF
14termux_step_pre_configure() {
15 if [ "$TERMUX_ARCH" == "arm" ]; then
16 # valgrind doesn't like arm; armv7 works, though.
17 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --host=armv7-linux-androideabi"
18 # http://lists.busybox.net/pipermail/buildroot/2013-November/082270.html:
19 # "valgrind uses inline assembly that is not Thumb compatible":
20 CFLAGS=${CFLAGS/-mthumb/}
21 fi
e2235379
HG
22 if [ "$TERMUX_DEBUG" == "true" ]; then
23 CFLAGS=${CFLAGS/-fstack-protector/}
24 fi
538fab5d 25}