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:
parent
db82c680cd
commit
3b9f36d6c6
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ when /android/
|
||||||
end
|
end
|
||||||
libc_so = File.join(libdir, "libc.so")
|
libc_so = File.join(libdir, "libc.so")
|
||||||
libm_so = File.join(libdir, "libm.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/
|
when /linux/
|
||||||
libdir = '/lib'
|
libdir = '/lib'
|
||||||
case RbConfig::SIZEOF['void*']
|
case RbConfig::SIZEOF['void*']
|
||||||
|
|
Loading…
Reference in a new issue