From 5abafda82620d9f0e0fe2934a298a5be7d191c62 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 7 Mar 2009 16:56:54 +0000 Subject: add 64bit solaris library. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/dl/test_base.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test/dl/test_base.rb') diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb index 6a1f69398b..be23ffa35c 100644 --- a/test/dl/test_base.rb +++ b/test/dl/test_base.rb @@ -36,8 +36,14 @@ when /bsd|dragonfly/ LIBC_SO = "/usr/lib/libc.so" LIBM_SO = "/usr/lib/libm.so" when /solaris2/ - LIBC_SO = "/usr/lib/libc.so" - LIBM_SO = "/usr/lib/libm.so" + case [0].pack('L!').size + when 4 + libdir = '/usr/lib' + when 8 + libdir = '/usr/lib/64' + end + LIBC_SO = "#{libdir}/libc.so" + LIBM_SO = "#{libdir}/libm.so" else LIBC_SO = ARGV[0] LIBM_SO = ARGV[1] -- cgit v1.2.3