From 8bf71e91bb40024216f342d09541c2875dd15434 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sat, 17 Feb 2018 00:19:35 +0100 Subject: [PATCH] valgrind: build without -fstack-protector if debug (#2153) --- packages/valgrind/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/valgrind/build.sh b/packages/valgrind/build.sh index a28b906d0..031b7f533 100644 --- a/packages/valgrind/build.sh +++ b/packages/valgrind/build.sh @@ -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 }