浏览代码

ruby: add support for gmp as an optional dependency

Ruby can now use gmp optionally, so make sure that if the gmp package
for the target is enabled, it gets built before the ruby package, and
the appropriate configure options are passed to Ruby.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Thomas Petazzoni 11 年之前
父节点
当前提交
9a9d64bb49
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      package/ruby/ruby.mk

+ 6 - 0
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.