From: Fabrice Fontaine Date: Fri, 28 Feb 2020 08:44:35 +0000 (+0100) Subject: package/ruby: fix build on mips X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c7e56163a70969a7dcdb3adf57c363ac462867a9;p=buildroot.git package/ruby: fix build on mips Fixes: - http://autobuild.buildroot.org/results/d0ab5334f195a400a6d6dd6c49e3c1a2001b2b70 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk index 1899d14797..0ac1164332 100644 --- a/package/ruby/ruby.mk +++ b/package/ruby/ruby.mk @@ -48,6 +48,12 @@ endif ifeq ($(BR2_PACKAGE_BERKELEYDB),y) RUBY_DEPENDENCIES += berkeleydb endif +ifeq ($(BR2_PACKAGE_LIBFFI),y) +RUBY_DEPENDENCIES += libffi +else +# Disable fiddle to avoid a build failure with bundled-libffi on MIPS +RUBY_CONF_OPTS += --with-out-ext=fiddle +endif ifeq ($(BR2_PACKAGE_GDBM),y) RUBY_DEPENDENCIES += gdbm endif