зеркало из https://github.com/github/ruby.git
* test/fiddle/helper.rb (libc_so, libm_so): Solaris support added.
* test/dl/test_base.rb (libc_so, libm_so): on Solaris, remove libc and libm version numbers for detecting default libc and libm. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
23aef380e0
Коммит
321be14fe7
|
@ -1,3 +1,10 @@
|
|||
Tue Aug 9 12:20:33 2011 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* test/fiddle/helper.rb (libc_so, libm_so): Solaris support added.
|
||||
|
||||
* test/dl/test_base.rb (libc_so, libm_so): on Solaris, remove libc
|
||||
and libm version numbers for detecting default libc and libm.
|
||||
|
||||
Tue Aug 9 09:18:04 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* ext/zlib/zlib.c (gzfile_wrap): Document encoding options.
|
||||
|
|
|
@ -45,8 +45,8 @@ when /solaris/
|
|||
# 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")
|
||||
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"
|
||||
|
|
|
@ -38,6 +38,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")
|
||||
libm_so = File.join(libdir, "libm.so")
|
||||
when /aix/
|
||||
pwd=Dir.pwd
|
||||
libc_so = libm_so = "#{pwd}/libaixdltest.so"
|
||||
|
|
Загрузка…
Ссылка в новой задаче