[Buildroot] [git commit] ruby: don't try to use gmp on the host

Peter Korsgaard peter at korsgaard.com
Sat Sep 6 20:12:10 UTC 2014

commit: http://git.buildroot.net/buildroot/commit/?id=033d865dabcaec3dedfb81d3433a44c4dbe21422
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

When building host-ruby, if gmp seems to be available (for example
when host-gmp is built as a dependency of building the toolchain),
Ruby tries to use it. Unfortunately, it fails to use it because there
is no static version of host-gmp that is built and installed.

Since we anyway don't care much about gmp support in host-ruby, simply
disable it.

This issue was introduced since the bump to Ruby 2.1.0, and this
commit fixes:


Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/ruby/ruby.mk |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk
index 297e902..384cc88 100644
--- a/package/ruby/ruby.mk
+++ b/package/ruby/ruby.mk
@@ -14,7 +14,8 @@ RUBY_MAKE_ENV = $(TARGET_MAKE_ENV)
 RUBY_CONF_OPT = --disable-install-doc --disable-rpath
 HOST_RUBY_CONF_OPT = --disable-install-doc \
-	--with-out-ext=curses,openssl,readline
+	--with-out-ext=curses,openssl,readline \
+	--without-gmp
 RUBY_LICENSE = Ruby or BSD-2c, BSD-3c, others

More information about the buildroot mailing list