Haiku LIBC_SO and LIBM_SO support for test/fiddle/helper.rb
This is required for the tests.
Haiku comes currently in 2 different flavour: 32 and 64 bit.
64 bit have only one toolchain, so it is easy, but 32 bit comes with 2 different (GCC2 primary and GCC7 secondary). Ruby built with GCC7 on Haiku, so it needs to pick the secondary arch libroot.so.
libroot.so is a complex lib which provides the libm and libc functionality, and probably much more.
Updated by nobu (Nobuyoshi Nakada) about 1 year ago
Off topic a little, I think this code is wrong.
case .pack('L!').size when 4 # 32-bit ruby when 8 # 64-bit ruby end
This selects the platform by the size of
long, but it may differ from the address bus size, e.g., mswin/mingw.
The size should be
.pack('J').size (2.3 or later) or
or, much better,