1
0
Fork 0
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:
Zoltán Mizsei 2020-10-29 22:47:24 +01:00 committed by Nobuyoshi Nakada
parent 9542321584
commit 8f6cb5b70b
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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] == ?/