From e646da4c727f334ae93562809f8dbd27449c3fa0 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: http://svn.ruby-lang.org/repos/ruby/trunk@22817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/dl/test_base.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb index 6a1f69398..be23ffa35 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