valgrind: build without -fstack-protector if debug (#2153)

This commit is contained in:
Henrik Grimler 2018-02-17 00:19:35 +01:00 committed by Fredrik Fornwall
parent 71ff728d08
commit 8bf71e91bb
1 changed files with 3 additions and 0 deletions

View File

@ -19,4 +19,7 @@ termux_step_pre_configure() {
# "valgrind uses inline assembly that is not Thumb compatible":
CFLAGS=${CFLAGS/-mthumb/}
fi
if [ "$TERMUX_DEBUG" == "true" ]; then
CFLAGS=${CFLAGS/-fstack-protector/}
fi
}