valgrind: Fix build
Valgrind cannot be built with -fstack-protector-strong which is now used by default.
This commit is contained in:
parent
fe2edbf43d
commit
7725dee5d8
@ -14,15 +14,13 @@ termux_step_pre_configure() {
|
|||||||
cp $TERMUX_PKG_BUILDER_DIR/aarch64-setjmp.S $TERMUX_PKG_SRCDIR
|
cp $TERMUX_PKG_BUILDER_DIR/aarch64-setjmp.S $TERMUX_PKG_SRCDIR
|
||||||
autoreconf -if
|
autoreconf -if
|
||||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-only64bit"
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-only64bit"
|
||||||
fi
|
elif [ "$TERMUX_ARCH" == "arm" ]; then
|
||||||
if [ "$TERMUX_ARCH" == "arm" ]; then
|
|
||||||
# valgrind doesn't like arm; armv7 works, though.
|
# valgrind doesn't like arm; armv7 works, though.
|
||||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --host=armv7-linux-androideabi"
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --host=armv7-linux-androideabi"
|
||||||
# http://lists.busybox.net/pipermail/buildroot/2013-November/082270.html:
|
# http://lists.busybox.net/pipermail/buildroot/2013-November/082270.html:
|
||||||
# "valgrind uses inline assembly that is not Thumb compatible":
|
# "valgrind uses inline assembly that is not Thumb compatible":
|
||||||
CFLAGS=${CFLAGS/-mthumb/}
|
CFLAGS=${CFLAGS/-mthumb/}
|
||||||
fi
|
fi
|
||||||
if [ "$TERMUX_DEBUG" == "true" ]; then
|
|
||||||
CFLAGS=${CFLAGS/-fstack-protector/}
|
CFLAGS=${CFLAGS/-fstack-protector-strong/}
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user