summaryrefslogtreecommitdiffstats
path: root/package/ruby/ruby.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/ruby/ruby.mk')
-rw-r--r--package/ruby/ruby.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk
index 384cc88d55..8c094b5ccf 100644
--- a/package/ruby/ruby.mk
+++ b/package/ruby/ruby.mk
@@ -54,6 +54,12 @@ endif
ifeq ($(BR2_PACKAGE_ZLIB),y)
RUBY_DEPENDENCIES += zlib
endif
+ifeq ($(BR2_PACKAGE_GMP),y)
+ RUBY_DEPENDENCIES += gmp
+ RUBY_CONF_OPT += --with-gmp
+else
+ RUBY_CONF_OPT += --without-gmp
+endif
# Remove rubygems and friends, as they need extensions that aren't
# built and a target compiler.
OpenPOWER on IntegriCloud