diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk index fded7acebc..a71ca3a8a2 100644 --- a/package/ruby/ruby.mk +++ b/package/ruby/ruby.mk @@ -23,6 +23,10 @@ RUBY_CPE_ID_VENDOR = ruby-lang # 0001-fix-default-coroutine-selection.patch RUBY_AUTORECONF = YES +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +RUBY_CONF_ENV += LIBS=-latomic +endif + ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) # On uClibc, finite, isinf and isnan are not directly implemented as # functions. Instead math.h #define's these to __finite, __isinf and