ruby-changes:62865
From: Hiroshi <ko1@a...>
Date: Tue, 8 Sep 2020 20:39:44 +0900 (JST)
Subject: [ruby-changes:62865] b7d86e330c (master): Workaroud for macOS Big Sur(11.0)
https://git.ruby-lang.org/ruby.git/commit/?id=b7d86e330c From b7d86e330c76b4f9615511307e1c40f4f2937c83 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Tue, 8 Sep 2020 20:39:23 +0900 Subject: Workaroud for macOS Big Sur(11.0) diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb index 585900d..f5ccedd 100644 --- a/test/fiddle/helper.rb +++ b/test/fiddle/helper.rb @@ -122,6 +122,11 @@ end https://github.com/ruby/ruby/blob/trunk/test/fiddle/helper.rb#L122 libc_so = nil if !libc_so || (libc_so[0] == ?/ && !File.file?(libc_so)) libm_so = nil if !libm_so || (libm_so[0] == ?/ && !File.file?(libm_so)) +# macOS 11.0+ removed libSystem.B.dylib from /usr/lib. But It works with dlopen. +if RUBY_PLATFORM =~ /darwin/ + libc_so = libm_so = "/usr/lib/libSystem.B.dylib" +end + if !libc_so || !libm_so ruby = EnvUtil.rubybin # When the ruby binary is 32-bit and the host is 64-bit, -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/