valgrind: build without -fstack-protector if debug (#2153)
[termux-packages] / packages / valgrind / build.sh
index a28b906..031b7f5 100644 (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
 }