Skip to content
Snippets Groups Projects

Upgrade Ruby to 3.3.0

Merged Jakub Jirutka requested to merge jirutka/aports:ruby330 into master
1 file
+ 8
2
Compare changes
  • Side-by-side
  • Inline
+ 8
2
@@ -138,8 +138,8 @@ build() {
# -O2 - ruby is a language runtime, so performance is crucial. Moreover,
# ruby 3.1.1 fails with Bus Error when compiled with -Os on armhf/armv7.
# This makes ruby-libs 7% bigger (13.4 -> 14.4 MiB).
export CFLAGS="${CFLAGS/-Os/-O2} -fno-omit-frame-pointer -fno-strict-aliasing"
export CPPFLAGS="${CPPFLAGS/-Os/-O2} -fno-omit-frame-pointer -fno-strict-aliasing"
export CFLAGS="${CFLAGS/-Os/} -fno-omit-frame-pointer -fno-strict-aliasing"
export CPPFLAGS="${CPPFLAGS/-Os/} -fno-omit-frame-pointer -fno-strict-aliasing"
# Needed for coroutine stuff
export LIBS="-lucontext"
@@ -147,6 +147,12 @@ build() {
# ruby saves path to install. we want use $PATH
export INSTALL=install
case "$CARCH" in
# Ruby segfaults when built with default (-O3).
# See https://bugs.ruby-lang.org/issues/20099.
s390x) export optflags="-O2";;
esac
# the configure script does not detect isnan/isinf as macros
export ac_cv_func_isnan=yes
export ac_cv_func_isinf=yes
Loading