~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to test/fiddle/helper.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  libm_so = File.join(libdir, "libm.so.6")
29
29
when /mingw/, /mswin/
30
30
  require "rbconfig"
31
 
  libc_so = libm_so = RbConfig::CONFIG["RUBY_SO_NAME"].split(/-/, 2)[0] + ".dll"
 
31
  libc_so = libm_so = RbConfig::CONFIG["RUBY_SO_NAME"].split(/-/).find{|e| /^msvc/ =~ e} + ".dll"
32
32
when /darwin/
33
33
  libc_so = "/usr/lib/libc.dylib"
34
34
  libm_so = "/usr/lib/libm.dylib"
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"