Browse Source
Merge pull request #3395 from xeffyr/fix-ruby
ruby: fix segmentation fault
android-5
Fredrik Fornwall
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
packages/ruby/build.sh
|
|
@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Dynamic programming language with a focus on simplicity |
|
|
|
TERMUX_PKG_LICENSE="BSD 2-Clause" |
|
|
|
_MAJOR_VERSION=2.6 |
|
|
|
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.1 |
|
|
|
TERMUX_PKG_REVISION=1 |
|
|
|
TERMUX_PKG_REVISION=2 |
|
|
|
TERMUX_PKG_SHA256=47b629808e9fd44ce1f760cdf3ed14875fc9b19d4f334e82e2cf25cb2898f2f2 |
|
|
|
TERMUX_PKG_SRCURL=https://cache.ruby-lang.org/pub/ruby/${_MAJOR_VERSION}/ruby-${TERMUX_PKG_VERSION}.tar.xz |
|
|
|
# libbffi is used by the fiddle extension module: |
|
|
@ -23,6 +23,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" |
|
|
|
CFLAGS="${CFLAGS/-Os/-Oz}" |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|