ruby: use -O3 instead of -Os for 32 bit arches

This commit is contained in:
Henrik Grimler 2018-09-17 13:20:05 +02:00 committed by Fredrik Fornwall
parent fd97ae4e21
commit 743917b67f
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ termux_step_pre_configure() {
if [ "$TERMUX_ARCH_BITS" = 32 ]; then
# process.c:function timetick2integer: error: undefined reference to '__mulodi4'
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" rb_cv_builtin___builtin_mul_overflow=no"
export CFLAGS="${CFLAGS/-Os/} -O3"
fi
}