1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/dl/test_base.rb (libc_so, libm_so): supports solaris.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2010-05-08 16:05:27 +00:00
parent 8f3e3995df
commit ffde073b0c
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Sun May 9 00:35:56 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* test/dl/test_base.rb (libc_so, libm_so): supports solaris.
Sat May 8 19:03:31 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* spec/default.mspec (config): . is no longer in $:.

View file

@ -35,6 +35,18 @@ when /kfreebsd/
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.6")
libm_so = File.join(libdir, "libm.so.6")
else
libc_so = ARGV[0] if ARGV[0] && ARGV[0][0] == ?/
libm_so = ARGV[1] if ARGV[1] && ARGV[1][0] == ?/