1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-14 21:06:38 +00:00

valgrind: Fix arm build by avoiding -mthumb

This commit is contained in:
Fredrik Fornwall 2017-01-19 18:40:53 +01:00
parent 42a606a246
commit 538fab5db5

View File

@ -11,8 +11,12 @@ TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
# "error: the clang compiler does not support '-mcpu=cortex-a8'":
TERMUX_PKG_CLANG=no
if [ "$TERMUX_ARCH" == "arm" ]; then
# valgrind doesn't like arm; armv7 works, though.
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --host=armv7-linux-androideabi"
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
}