test-fiddle-libc-solaris.patch

Naohisa Goto, 08/08/2011 11:02 PM

Download (718 Bytes)

View differences:

ruby_1_9_3-tmp/test/fiddle/helper.rb (working copy)
38 38
when /bsd|dragonfly/
39 39
  libc_so = "/usr/lib/libc.so"
40 40
  libm_so = "/usr/lib/libm.so"
41
when /solaris/
42
  libdir = '/lib'
43
  case [0].pack('L!').size
44
  when 4
45
    # 32-bit ruby
46
    libdir = '/lib' if File.directory? '/lib'
47
  when 8
48
    # 64-bit ruby
49
    libdir = '/lib/64' if File.directory? '/lib/64'
50
  end
51
  libc_so = File.join(libdir, "libc.so")
52
  libm_so = File.join(libdir, "libm.so")
41 53
when /aix/
42 54
  pwd=Dir.pwd
43 55
  libc_so = libm_so = "#{pwd}/libaixdltest.so"