Browse Source

Switch back to -Os instead of -Oz for arm

Seems that there are still issues (segfault on ruby at least).
android-5
Fredrik Fornwall 6 years ago
parent
commit
c2c453ee0d
  1. 4
      build-package.sh

4
build-package.sh

@ -612,9 +612,13 @@ termux_step_setup_toolchain() {
if [ -n "$TERMUX_DEBUG" ]; then
CFLAGS+=" -g3 -O1 -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
else
if [ $TERMUX_ARCH = arm ]; then
CFLAGS+=" -Os"
else
CFLAGS+=" -Oz"
fi
fi
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="-I${TERMUX_PREFIX}/include"

Loading…
Cancel
Save