mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
TEST: multiarch support for Haiku
This commit is contained in:
parent
9542321584
commit
8f6cb5b70b
1 changed files with 12 additions and 0 deletions
|
@ -111,6 +111,18 @@ when /aix/
|
|||
end
|
||||
end
|
||||
end
|
||||
when /haiku/
|
||||
libdir = '/system/lib'
|
||||
case [0].pack('L!').size
|
||||
when 4
|
||||
# 32-bit ruby
|
||||
libdir = '/system/lib/x86' if File.directory? '/system/lib/x86'
|
||||
when 8
|
||||
# 64-bit ruby
|
||||
libdir = '/system/lib/' if File.directory? '/system/lib/'
|
||||
end
|
||||
libc_so = File.join(libdir, "libroot.so")
|
||||
libm_so = File.join(libdir, "libroot.so")
|
||||
else
|
||||
libc_so = ARGV[0] if ARGV[0] && ARGV[0][0] == ?/
|
||||
libm_so = ARGV[1] if ARGV[1] && ARGV[1][0] == ?/
|
||||
|
|
Loading…
Reference in a new issue