Project

General

Profile

Bug #5168 » test-fiddle-libc-solaris.patch

ngoto (Naohisa Goto), 08/08/2011 11:02 PM

View differences:

ruby_1_9_3-tmp/test/fiddle/helper.rb (working copy)
when /bsd|dragonfly/
libc_so = "/usr/lib/libc.so"
libm_so = "/usr/lib/libm.so"
when /solaris/
libdir = '/lib'
case [0].pack('L!').size
when 4
# 32-bit ruby
libdir = '/lib' if File.directory? '/lib'
when 8
# 64-bit ruby
libdir = '/lib/64' if File.directory? '/lib/64'
end
libc_so = File.join(libdir, "libc.so")
libm_so = File.join(libdir, "libm.so")
when /aix/
pwd=Dir.pwd
libc_so = libm_so = "#{pwd}/libaixdltest.so"
(2-2/3)