Switch back to -Os instead of -Oz for arm

Seems that there are still issues (segfault on ruby at least).
This commit is contained in:
Fredrik Fornwall 2018-09-20 02:43:14 +02:00
parent 11c765d731
commit 2811236000
1 changed files with 5 additions and 1 deletions

View File

@ -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"