From: Fredrik Fornwall Date: Sun, 22 Apr 2018 19:43:19 +0000 (+0200) Subject: ruby: Build 32-bit variants with gcc for now X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/786e7572702074c3e01633136446a4fadc47d26e ruby: Build 32-bit variants with gcc for now This fixes a build error with clang for 32-bit targets: process.c:function timetick2integer: error: undefined reference to '__mulodi4' --- diff --git a/packages/ruby/build.sh b/packages/ruby/build.sh index c21164d0..6729dc66 100644 --- a/packages/ruby/build.sh +++ b/packages/ruby/build.sh @@ -17,6 +17,11 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" rb_cv_type_deprecated=x" # getresuid(2) does not work on ChromeOS - https://github.com/termux/termux-app/issues/147: # TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_getresuid=no" +if [ "$TERMUX_ARCH_BITS" = 32 ]; then + # process.c:function timetick2integer: error: undefined reference to '__mulodi4' + TERMUX_PKG_CLANG=no +fi + termux_step_make_install () { make install make uninstall # remove possible remains to get fresh timestamps