From c2c453ee0d74ba59e1a35503d847be3e0d76114b Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 20 Sep 2018 02:43:14 +0200 Subject: [PATCH] Switch back to -Os instead of -Oz for arm Seems that there are still issues (segfault on ruby at least). --- build-package.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-package.sh b/build-package.sh index 3853b35eb..9ff3a3eff 100755 --- a/build-package.sh +++ b/build-package.sh @@ -613,7 +613,11 @@ termux_step_setup_toolchain() { if [ -n "$TERMUX_DEBUG" ]; then CFLAGS+=" -g3 -O1 -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" else - CFLAGS+=" -Oz" + if [ $TERMUX_ARCH = arm ]; then + CFLAGS+=" -Os" + else + CFLAGS+=" -Oz" + fi fi export CXXFLAGS="$CFLAGS"