From: Thomas Petazzoni Date: Sat, 6 Sep 2014 13:59:27 +0000 (+0200) Subject: ruby: add support for gmp as an optional dependency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a9d64bb496215a8dfbfe23960141ee7bf86c203;p=buildroot.git 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 Signed-off-by: Peter Korsgaard --- 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.