Skip to contentSkip to conversation

package/ruby: links with atomic if needed

PATCH New Fabrice Fontaine 2 participants 2 messages May 10, 2021 – May 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ruby: links with atomic if needed

Build fails since bump to version 3.0.0 in commit af5226f2fd1292a26f2dfda32f41cbbad7aa4cc because ruby needs atomic operation support since
https://github.com/ruby/ruby/commit/6ed6b85ece8733518a7da0c3ec714f20d1102bf5

Fixes:
- http://autobuild.buildroot.org/results/84ee5f4688be994a5440c3a61bddabee72ca3b3c

---
 package/ruby/ruby.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/ruby/ruby.mk +4 -0
index fded7acebc..a71ca3a8a2 100644
@@ -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
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/1 package/ruby: links with atomic if needed

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Build fails since bump to version 3.0.0 in commit af5226f2fd1292a26f2dfda32f41cbbad7aa4cc because ruby needs atomic operation support since
https://github.com/ruby/ruby/commit/6ed6b85ece8733518a7da0c3ec714f20d1102bf5

Fixes:
- http://autobuild.buildroot.org/results/84ee5f4688be994a5440c3a61bddabee72ca3b3c

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard