summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-01-23 11:59:37 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-01-24 10:49:35 +0900
commit3b9f36d6c6a4e02bf6c9bc99e953d5e558ee2fe6 (patch)
tree87dd6fc14323f79ee989bf372ba534c979653652
parentdb82c680cdc1cf282e5792ca682ed719ae5879db (diff)
pass appropriate libc path
The same as https://github.com/ruby/ruby/pull/2686, but for musl libc. Musl is not named as libc.so.6 so the `ldd` hack implemented some lines below does not work.
-rw-r--r--test/fiddle/helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb
index 57ded4951f..348131e448 100644
--- a/test/fiddle/helper.rb
+++ b/test/fiddle/helper.rb
@@ -17,6 +17,10 @@ when /android/
end
libc_so = File.join(libdir, "libc.so")
libm_so = File.join(libdir, "libm.so")
+when /linux-musl/
+ Dir.glob('/lib/ld-musl-*.so.1') do |ld|
+ libc_so = libm_so = ld
+ end
when /linux/
libdir = '/lib'
case RbConfig::SIZEOF['void*']