From 3b9f36d6c6a4e02bf6c9bc99e953d5e558ee2fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Thu, 23 Jan 2020 11:59:37 +0900 Subject: 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. --- test/fiddle/helper.rb | 4 ++++ 1 file changed, 4 insertions(+) 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*'] -- cgit v1.2.3