1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
卜部昌平 2020-01-23 11:59:37 +09:00
parent db82c680cd
commit 3b9f36d6c6

View file

@ -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*']