Project

General

Profile

Bug #15826 » ruby_test_fix.patch

extrowerk (Zoltán Mizsei), 05/05/2019 03:43 PM

View differences:

test/fiddle/helper.rb (working copy)
84 84
      end
85 85
    end
86 86
  end
87
when /haiku/
88
  libdir = '/system/lib'
89
  case [0].pack('L!').size
90
  when 4
91
    # 32-bit ruby
92
    libdir = '/system/lib/x86' if File.directory? '/system/lib/x86'
93
  when 8
94
    # 64-bit ruby
95
    libdir = '/system/lib/' if File.directory? '/system/lib/'
96
  end
97
  libc_so = File.join(libdir, "libroot.so")
98
  libm_so = File.join(libdir, "libroot.so")
87 99
else
88 100
  libc_so = ARGV[0] if ARGV[0] && ARGV[0][0] == ?/
89 101
  libm_so = ARGV[1] if ARGV[1] && ARGV[1][0] == ?/