160d3aeb06
* update ndk to 17 * bump NDK version in setup-android script * libnl: fix for ndk r17 * libpixman: use clang's __builtin_shufflevector instead of __builtin_shuffle (#1) Required to make package build with ndk17. * fix as for arm * ndk17 still uses ld.bfd on aarch64 * use -fno-integrated-as for clang only * glib: remove patch unnecessary after ndk17 * torsocks: remove unneeded patch after ndk17 * subversion: fix build as clang++ now errors out for mismatched flags * libpulseaudio: fix build with ndk17 https://github.com/termux/termux-packages/pull/2415#issuecomment-388296684 * gst-plugins-good: disable video4linux2 ioctl is defined as __overloadable in ndk17 headers which conflicts with v4l2object's member ioctl * libzmq: disable Werror to build with ndk17 * ltrace: hardcode symbol not available in ndk17 * busybox: build with clang for all arches except arm * dropbear: build with clang instead of gcc * gnupg: build with clang instead of gcc * openssl: use clang for all arches except arm * picolisp: build with clang instead of gcc * valgrind: use clang on all arches except aarch64 * Revert "gst-plugins-good: disable video4linux2" This reverts commit 43850b81ccf60033c25cb13dfd326c1b0528773a. Already applied on base branch. * libllvm: use default arm triple
28 lines
1.2 KiB
Bash
28 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=http://valgrind.org/
|
|
TERMUX_PKG_DESCRIPTION="Instrumentation framework for building dynamic analysis tools"
|
|
TERMUX_PKG_VERSION=3.13.0
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=ftp://sourceware.org/pub/valgrind/valgrind-${TERMUX_PKG_VERSION}.tar.bz2
|
|
TERMUX_PKG_SHA256=d76680ef03f00cd5e970bbdcd4e57fb1f6df7d2e2c071635ef2be74790190c3b
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-tmpdir=$TERMUX_PREFIX/tmp"
|
|
# - Does not build on x86_64 due to lacking upstream support of that arch on android.
|
|
# See https://bugs.kde.org/show_bug.cgi?id=348342
|
|
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
|
|
# Fails on aarch64 with `__builtin_longjmp is not supported for the current target`
|
|
if [ $TERMUX_ARCH = aarch64 ]; then
|
|
TERMUX_PKG_CLANG=no
|
|
fi
|
|
|
|
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
|
|
if [ "$TERMUX_DEBUG" == "true" ]; then
|
|
CFLAGS=${CFLAGS/-fstack-protector/}
|
|
fi
|
|
}
|